Skip to content

Commit

Permalink
skip unsampled udp exporter if otlp endpoint is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
srprash committed Jan 15, 2025
1 parent a39d60f commit 6b789d6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ private SdkTracerProviderBuilder customizeTracerProviderBuilder(

// If running on Lambda, we just need to export 100% spans and skip generating any Application
// Signals metrics.
if (isLambdaEnvironment()) {
if (isLambdaEnvironment()
&& System.getenv(OTEL_EXPORTER_OTLP_TRACES_ENDPOINT_CONFIG) == null) {
String tracesEndpoint =
Optional.ofNullable(System.getenv(AWS_XRAY_DAEMON_ADDRESS_CONFIG))
.orElse(DEFAULT_UDP_ENDPOINT);
Expand Down

0 comments on commit 6b789d6

Please sign in to comment.