-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OpenTelemetry] http.route server span attribute set to "/" #45684
Comments
/cc @brunobat (opentelemetry), @radcortez (opentelemetry) |
Could you please provide a simple reproducer in the form of a Maven project? Thanks! |
It's a bit strange to split JAX-RS annotations between interface and implementation. In theory it's possible but it looks wrong.
|
here is a reproducer project: https://github.com/PhilippParis/otel-issue-reproducer issue can be reproduced by executing "curl localhost:8080/api/v1/hello" in setting up the reproducer i discovered that the issue is only present when using the resteasy dependencies. so i guess should really migrate my projects to quarkus-rest! thanks for your quick feedback! |
That should probably be done regardless of this issue (which we should fix in any case) :) |
Describe the bug
when defining the JAX-RS annotations in an interface (e.g. generated by the openapi-generator) the OpenTelemetry server span attribute http.route
is set to "/" instead of the actual route.
the issue is also mentioned here: #27827 (comment)
http.route is used in some tools (e.g. graphana) to display the trace name.
Due to the bug, all traces have the same name: e.g "POST /"
Expected behavior
http.route set to "/path/to/resource"
Server Span Attributes:
Actual behavior
http.route set to "/"
Server Span Attributes:
How to Reproduce?
Output of
uname -a
orver
No response
Output of
java -version
openjdk 21.0.3
Quarkus version or git rev
3.17.7
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.8
Additional information
No response
The text was updated successfully, but these errors were encountered: