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? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 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) |
Beta Was this translation helpful? Give feedback.
-
I seem to be having issues uploading the project so created a repo for it: https://github.com/chenlin2001/spring-otel-sqs-issues |
Beta Was this translation helpful? Give feedback.
-
I see 14207 is merged. Is it included in the latest release? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
In https://github.com/chenlin2001/spring-otel-sqs-issues/blob/8ed50e43ca2a7cb43bd3b4c94126a30830c894f2/opentelemetry-javaagent.properties#L11 you set
otel.instrumentation.messaging.experimental.receive-telemetry.enabled=true
With this flag consumer and producer will be in different traces that are linked with a span link.