-
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 tracing samples GET /
when /q/metrics
is called
#45844
Comments
/cc @ebullient (metrics), @jmartisk (metrics), @radcortez (opentelemetry) |
@brunobat ah yes, so this is something I saw: all the 404 are normalized to either |
Will confirm. |
It's also happening with |
Yeah so the route is set when the request is routed. And basically any route that will match in the end will trigger it. So if we have a route on Now I don't know how we want to handle a 404 but that's how it is. Note that we somehow want to normalize 404 as it could trigger a huge amount of spans if we keep the whole URL. |
I think we had a bug on the way we handled 404 and didn't realised it. If a lot of spans are a problem, we could evaluate a property to sample out 4** errors. |
Describe the bug
This is a follow up to #45300
It turns out that if we call the prometheus metrics endpoint
/q/metrics
a trace for/
is registered:Please mind that the
/q/metrics/
endpoint doesn't exist in the provided reproducer.The response status is 404.
Expected behavior
The default behaviour samples out all
/q/*
endpointsActual behavior
A trace for
/
is sent out by OTelHow to Reproduce?
Build last Quarkus main
Checkout https://github.com/brunobat/quarkus-lab/tree/main/otel-tracing
Start in dev mode:
mvn quarkus:dev
Look at the Grafana traces.
Current main has the Grafana LGTM devservice scraper pooling
/q/metrics
(There is a PR to fix that).You will see many requests.
Output of
uname -a
orver
24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000 arm64
Output of
java -version
OpenJDK 64-Bit Server VM Temurin-22.0.2+9
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: