When service A calls service B using Feign or HttpClient, how can I obtain the server span id of service A in service B, instead of the client span id? #13708
Unanswered
wenton1993
asked this question in
Q&A
Replies: 1 comment
-
If you want to obtain the server span for service A in service A then you can use https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/LocalRootSpan.java If you want to obtain the server span id of service A from service B then you will have to pass it along manually in baggage or wherever is convenient for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because I want to print the parent span id in the business log. If it prints the client span id, it makes no sense.
Beta Was this translation helpful? Give feedback.
All reactions