Replace traceId with a manual traceId from header in Span in Opentelemetry Context JS #4118
Unanswered
allanh1193cr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello community. I'm new with OTel and I would like to ask you something:
I'm using OpenTelemetry to distribute tracing in some microservices I have builded in Java. Those services are exposed in an ApiGateway in AWS. The APIGateway has a proxy for each microservice. I have created an implementation to forward the information using OpenTelemetry and send it to StopLight. I'm able to see the information in StopLight and X-Ray using the trace-Id which is generated automatically by the API. Now I want to have the possibility to send a custom trace-Id in the header of my request and modify the current trace-id by my trace-id. I modified the main span with the custom trace-id but it does not being replicated to the other spans(children) This is how my code looks:
I have read about baggage propagation but I don't understand clearly how it works.
Thanks in advance!!
Beta Was this translation helpful? Give feedback.
All reactions