Services not linking in Elastic APM service Map #2445
Replies: 5 comments
-
Question 1 sounds like a question for Elastic APM and not an opentelemetry issue. Question 2: Unless I'm missing something the line The code for setting the new context active looks correct to me, but I'm not an expert in Elastic APM and there might be a missing piece such as timeouts or something like that that I'm not aware of. Can you confirm that the |
Beta Was this translation helpful? Give feedback.
-
contextWegot contains the context that we get from the sqs message that the |
Beta Was this translation helpful? Give feedback.
-
Hello @Akash19980 , can you please create a ticket reporting this problem on https://github.com/elastic/apm-server so we can help you on this problem that may relate to the support of OpenTelemetry in Elastic Observability. Cc @axw |
Beta Was this translation helpful? Give feedback.
-
Yes I will but also need help in context propagation in opentelemetry |
Beta Was this translation helpful? Give feedback.
-
Cross posting with https://discuss.elastic.co/t/figure-out-how-to-link-services-using-manual-instrumentation/283027 For proper visualization of your messaging trace in the service map of Elastic Observability, you must comply with the OpenTelemetry Semantic Conventions for messaging systems and particularly:
|
Beta Was this translation helpful? Give feedback.
-
Service 1 generates random uuid and sends to service 2 via HTTP
Service 2 says ok and then further sends it to service 3 via AWS SQS
Service 3 says ok and then just echoes it maybe.
Service 2 inserts the message in the SQS along with the context of active span
Service 3 reads from the queue
So that we can see how to correlate when the request is passing through one service to another.
If I disable automatic instrumentation in service 3 the service map for service 3 disappears
Question 1- How to get a service on the service map
Question 2- Is it possible that we get the context from the sqs in service 3 and change the context of the active span in the service 3
CODE SNIPPET for service 2
CODE SNIPPET for service 3
Beta Was this translation helpful? Give feedback.
All reactions