Skip to content

Adding attributes to root span #4767

Discussion options

You must be logged in to vote

Hey @piotrplazienski ,
The opentelemetry-instrumentation-api artifact contains a ServerSpan class that makes it possible to retrieve the local root span ("local" means "the first span in this trace created by the current process" here). Does that fit your scenario?
Keep in mind that this module is still alpha and things may change - although I believe we're definitely not going to remove the ServerSpan class, it's very useful concept in general.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@piotrplazienski
Comment options

Answer selected by piotrplazienski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants