Springboot sqs instrumentation #14193
|
I want to instrument my springboot application with OpenTelemetry. When using the opentelemetry springboot starter I don't see support for SQS. Is there plan to support it? Or does it mean I have to not use the starter but use an agent? |
Replies: 5 comments 15 replies
|
The java agent will provide that tracing, or alternatively, you can continue using the starter and then also use the aws library (docs here) |
|
I seem to be having issues uploading the project so created a repo for it: https://github.com/chenlin2001/spring-otel-sqs-issues |
|
I see 14207 is merged. Is it included in the latest release? |
|
I tested with the latest version of the agent (opentelemetry-javaagent - version: 2.18.1), and currently the span context is valid. However the trace id coming from the span context is not the same trace id as available in the traceparent attribute (which is the same value that is used for sending message). So we have 2 traces.
I updated the github project ( https://github.com/chenlin2001/spring-otel-sqs-issues) with the example |
|
@laurit If we set otel.instrumentation.messaging.experimental.receive-telemetry.enabled=false or if default is false and using default. Will two diff service's which producer and consumer shares same trace context? |
In https://github.com/chenlin2001/spring-otel-sqs-issues/blob/8ed50e43ca2a7cb43bd3b4c94126a30830c894f2/opentelemetry-javaagent.properties#L11 you set
otel.instrumentation.messaging.experimental.receive-telemetry.enabled=trueWith this flag consumer and producer will be in different traces that are linked with a span link.