Skip to content

Commit b5a3529

Browse files
committed
checking instance
1 parent 5c5f8e1 commit b5a3529

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsApplicationSignalsCustomizerProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ private SpanExporter customizeSpanExporter(
304304
}
305305
}
306306
// When running OTLP endpoint for X-Ray backend, use custom exporter for SigV4 authentication
307-
else if (isXrayOtlpEndpoint(System.getenv(OTEL_EXPORTER_OTLP_TRACES_ENDPOINT_CONFIG))) {
307+
else if (spanExporter instanceof OtlpHttpSpanExporter
308+
&& isXrayOtlpEndpoint(System.getenv(OTEL_EXPORTER_OTLP_TRACES_ENDPOINT_CONFIG))) {
308309
spanExporter =
309310
new OtlpAwsSpanExporter(System.getenv(OTEL_EXPORTER_OTLP_TRACES_ENDPOINT_CONFIG));
310311
}

0 commit comments

Comments
 (0)