Skip to content

Tomcat instrumentation span names are not updatable from SpanProcessor #7853

Answered by laurit
srinusanduri asked this question in Q&A
Discussion options

You must be logged in to vote

See https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/http/ In tomcat instrumentation we are not able to determine a route so we start the span with a generic name. Later when request processing reaches a framework where we can get a route we'll update the span with a new better name. If you wish to prevent updating the span name you could try using

public static void updateHttpRoute(
Context context, HttpRouteSource source, @Nullable String httpRoute) {
update…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by srinusanduri
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