Skip to content

Commit f89d088

Browse files
committed
returning early to stop appsignals metrics
1 parent d84b956 commit f89d088

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/aws-opentelemetry-configurator.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ export class AwsOpentelemetryConfigurator {
238238
}
239239

240240
spanProcessors.push(AttributePropagatingSpanProcessorBuilder.create().build());
241+
242+
if(isXrayOtlpEndpoint(process.env['OTEL_EXPORTER_OTLP_TRACES_ENDPOINT'])) {
243+
return;
244+
}
245+
241246
const applicationSignalsMetricExporter: PushMetricExporter =
242247
ApplicationSignalsExporterProvider.Instance.createExporter();
243248
const periodicExportingMetricReader: PeriodicExportingMetricReader = new PeriodicExportingMetricReader({

0 commit comments

Comments
 (0)