Trace id changes while creating custom span #3905
Answered
by
jkwatson
balkrishan333
asked this question in
Q&A
Replies: 1 comment 15 replies
-
|
Beta Was this translation helpful? Give feedback.
15 replies
Answer selected by
balkrishan333
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For adding business information to my spans I am creating a manual span (this is because I think I can't add attributes to span obtained by Span.current()) and adding required information to that but I noticed that my default span and span which I created manually have different trace ids. I was expecting trace id for both to be same. I am using following code to create manual span
I am using jaeger as visualisation tool. I can see both the spans in jaeger but trace id for both of them is different.
Please help me identify what I am doing wrong or is my expectation that trace id should be same unfair.
Just to be clear, when I say default span, my method's entry point is "/tracing" and I can see 1 span with name "/tracing" and another one named "balkrishan span" as created by code above.
Beta Was this translation helpful? Give feedback.
All reactions