29 Nov 2023
09:33 PM
- last edited on
30 Nov 2023
08:14 AM
by
MaciejNeumann
Hi,
I am trying to add open telemetry trace to my golang code. We have around 10 containers deployed in EKS and each of these will read data from SQS, process and post the data to event bridge --> SQS. I would like to add a unique traceid for each sqs message from process1 and trace it where it is in Dynatrace and whether it has completed process10.
Example :
SQS1 - > process1(Kuberenets container) - SQS2 - >process2(Kuberenets container)..etc
I tried to add a default span and trace id within the code of each process but it is not getting recognized as a service in Dynatrace to pulll the OTEL details.
27 Dec 2024 07:07 PM
@venkateshn2382 were you able to get your trace ID and spans added? If so, would you be able to share with us what you had to do to get it working?
30 Dec 2024 11:17 PM
Hi @venkateshn2382 ,
I understood you are not using Oneagent for instrumentation and doing manual injection of Otel code.
Are you using this approach?
https://docs.dynatrace.com/docs/shortlink/otel-wt-go
Check if the oneagent feature is enabled, this links traces.
For context propagation check this, probably the headers are getting dropped or blocked.
https://docs.dynatrace.com/docs/shortlink/otel-wt-go#ensure-context-propagation