You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation shows that we need to configure the following, which I believe I've done the equivalent of using AutoConfigurationCustomizerProvider.
OpenTelemetrySdk.builder()
// This will enable your downstream requests to include the X-Ray trace header
.setPropagators(
ContextPropagators.create(
TextMapPropagator.composite(
W3CTraceContextPropagator.getInstance(), AwsXrayPropagator.getInstance())))
// This provides basic configuration of a TracerProvider which generates X-Ray compliant IDs
.setTracerProvider(
SdkTracerProvider.builder()
.addSpanProcessor(
BatchSpanProcessor.builder(OtlpGrpcSpanExporter.getDefault()).build())
.setIdGenerator(AwsXrayIdGenerator.getInstance())
.build())
.buildAndRegisterGlobal();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
How can I use AWS X-Ray compatible trace ids and propagate them to downstream services when using
opentelemetry-spring-boot-starter
?I tried using
AutoConfigurationCustomizerProvider
but the ID isn't propagating, as you can see below.The documentation shows that we need to configure the following, which I believe I've done the equivalent of using
AutoConfigurationCustomizerProvider
.Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions