-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The server receives requests for /test/otle and processes them in a Java filter with registration.addUrlPatterns("/test/*").
However, due to the initial route being null, the method HttpServerRoute.isBetterRoute(httpRouteState, route) always returns true, triggering the subsequent call to updateSpanName(serverSpan, httpRouteState, route), which updates the span name to /test/*.
Steps to reproduce
The server receives requests for /test/otle and processes them in a Java filter with registration.addUrlPatterns("/test/*").
The Java filter returns directly without executing chain.doFilter(request, response).
Expected behavior
In this case, /test/otle is longer than /test/*, and it is expected to use /test/otle as the final span name.
Actual behavior
now is /test/*
Javaagent or library instrumentation version
2.5.0+
Environment
JDK:
OS:
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working