Skip to content

Commit

Permalink
add correct env var and initialize datadog client
Browse files Browse the repository at this point in the history
  • Loading branch information
alovew committed May 31, 2022
1 parent 31a4cf9 commit f0935f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
import io.airbyte.config.SyncStats;
import io.airbyte.config.WorkerDestinationConfig;
import io.airbyte.config.WorkerSourceConfig;
import io.airbyte.metrics.lib.DatadogClientConfiguration;
import io.airbyte.metrics.lib.DogStatsDMetricSingleton;
import io.airbyte.metrics.lib.MetricEmittingApps;
import io.airbyte.metrics.lib.OssMetricsRegistry;
import io.airbyte.protocol.models.AirbyteMessage;
import io.airbyte.workers.*;
Expand Down Expand Up @@ -361,6 +363,7 @@ private static Runnable getReplicationRunnable(final AirbyteSource source,
}
LOGGER.info("Total records read: {} ({})", recordsRead, FileUtils.byteCountToDisplaySize(messageTracker.getTotalBytesEmitted()));
if (!validationErrors.isEmpty()) {
DogStatsDMetricSingleton.initialize(MetricEmittingApps.WORKER, new DatadogClientConfiguration(configs));
validationErrors.forEach((stream, errorPair) -> {
final String[] validationErrorMetadata = new String[] {
"docker_repo:airbyte/test", // dockerImage.split(":")[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class OrchestratorConstants {
EnvConfigs.JOB_MAIN_CONTAINER_MEMORY_LIMIT,
EnvConfigs.JOB_DEFAULT_ENV_MAP,
EnvConfigs.LOCAL_ROOT,
EnvConfigs.PUBLISH_METRICS,
LOG_LEVEL,
LogClientSingleton.GCS_LOG_BUCKET,
LogClientSingleton.GOOGLE_APPLICATION_CREDENTIALS,
Expand Down

0 comments on commit f0935f9

Please sign in to comment.