How can I control a trace so that only the root span is called? #12760
Unanswered
zerocooldog
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Looking into the OTEL instrumentation module, I found that there are advice classes related to servlets.
And by registering a CustomSpanProcessor, I get that the context object in the onStart method of the SpanProcessor logs information such as HttpRouteState or opentelemetry-servlet-app-server-bridge.
-CustomSpanProcc
Here are my questions:
I'm trying to access the HttpRouteState value from the context within a SpanProcessor, but it's always null. Am I using the context.get(KEY) method correctly? When I log the entire context object, it seems to contain the desired information.
I'm trying to optimize my tracing configuration. Can I initiate and terminate the root span just once, regardless of the number of child spans within a trace? I aim to reduce overhead and improve performance.
Beta Was this translation helpful? Give feedback.
All reactions