-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 extension traces health endpoints when a custom root-path is configured #46040
Comments
/cc @brunobat (opentelemetry), @jmartisk (health), @radcortez (config,opentelemetry), @xstefank (health) |
There is a workaround for this behaviour. |
I will have a look. |
Yeah so the ignore list is all borked:
I will have a look at what's going on. |
We already have the full path at some point so there's really no need to rebuild it once again, especially since the code was incorrect as it was adding the /q/ prefix always if it wasn't there in the path. It's perfectly valid to not have /q in the path, for instance if you set quarkus.smallrye-health.root-path to /something/else. I added a new test based on the report in addition to the ones we added recently for related fixes. Fixes quarkusio#46040
#46181 should fix it. |
We already have the full path at some point so there's really no need to rebuild it once again, especially since the code was incorrect as it was adding the /q/ prefix always if it wasn't there in the path. It's perfectly valid to not have /q in the path, for instance if you set quarkus.smallrye-health.root-path to /something/else. I added a new test based on the report in addition to the ones we added recently for related fixes. Fixes quarkusio#46040 (cherry picked from commit d8daa71)
We already have the full path at some point so there's really no need to rebuild it once again, especially since the code was incorrect as it was adding the /q/ prefix always if it wasn't there in the path. It's perfectly valid to not have /q in the path, for instance if you set quarkus.smallrye-health.root-path to /something/else. I added a new test based on the report in addition to the ones we added recently for related fixes. Fixes quarkusio#46040 (cherry picked from commit d8daa71)
We already have the full path at some point so there's really no need to rebuild it once again, especially since the code was incorrect as it was adding the /q/ prefix always if it wasn't there in the path. It's perfectly valid to not have /q in the path, for instance if you set quarkus.smallrye-health.root-path to /something/else. I added a new test based on the report in addition to the ones we added recently for related fixes. Fixes quarkusio#46040 (cherry picked from commit d8daa71)
We already have the full path at some point so there's really no need to rebuild it once again, especially since the code was incorrect as it was adding the /q/ prefix always if it wasn't there in the path. It's perfectly valid to not have /q in the path, for instance if you set quarkus.smallrye-health.root-path to /something/else. I added a new test based on the report in addition to the ones we added recently for related fixes. Fixes quarkusio#46040 (cherry picked from commit d8daa71)
Describe the bug
Configuring a custom path for the health endpoint like:
And then invoking endpoints such as
/observe/health/live
&/observe/health/ready
results in them being traced if the OpenTelemetry extension is present. It seems to ignore/observe/health
but not sub-paths.Expected behavior
All endpoint paths under
quarkus.smallrye-health.root-path
are excluded from tracing.Actual behavior
See details above.
How to Reproduce?
git clone https://github.com/jamesnetherton/otel-non-app-path-trace.git
cd otel-non-app-path-trace
mvn clean test
OtelTest
will fail. It's expecting to find only one application endpoint being traced. But it finds 3 as the health endpoints are also traced.Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.18.1
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: