Adding attributes to root span #4767
-
Hello, Solution would be to add attributes to root span (one representing HTTP request, which later becomes |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @piotrplazienski , |
Beta Was this translation helpful? Give feedback.
Hey @piotrplazienski ,
The
opentelemetry-instrumentation-api
artifact contains aServerSpan
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.