Replies: 2 comments 1 reply
-
I now came up with something like
This seems to work. Autoinstrumentation is back and works as expected. Do you see any downside in doing this? |
Beta Was this translation helpful? Give feedback.
-
Hey @otbe, happy you found a way of making it work. The From your solution it seems that the In my understanding, unless they're also instrumenting async listener methods, which is tricky, it might be better for them to instrument the I'm not sure if they're interested in instrumenting manual container creation, but perhaps you could open an issue in their project, and I'd be happy to collaborate with them in figuring a solution out. Let me know your thoughts, thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
in my current project we want to create some custom listener containers and when looking at the docs its basically as simple as
This works just fine but those containers are not the same way created than the default one when you use
@SqsListener
. One subtle difference is that they don't go throughio.awspring.cloud.sqs.config.AbstractEndpoint#setupContainer
because we only specify a string as queue name and not anSqsEndpoint
.Why do I care?
I think that we skip this part of the code is the reason I dont get any instrumentation for my listener class in terms of auto instrumentation by the opentelemetry java agent. If I get it right it looks exclusively for a
MessagingMessageListenerAdapter
hereI already use the latest version of Spring AWS Cloud and the latest agent version (2.18.1) with the fix for open-telemetry/opentelemetry-java-instrumentation#14207. In another project (with same spring aws cloud &agent version) where we just use
@SqsListener
instrumentation works as expected, so if the SQS message contains tracing information its attached.I tried to mimic the same behaviour of setting up the container but it's quite hard. Do you have any better idea how can I achieve this? I know its not really a problem of this project but you know it best :D
Beta Was this translation helpful? Give feedback.
All reactions