Skip to content

Exclude /health endpoint from being traced in distributed tracing #7494

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

Open
srenatus opened this issue Apr 4, 2025 · 0 comments
Open

Exclude /health endpoint from being traced in distributed tracing #7494

srenatus opened this issue Apr 4, 2025 · 0 comments

Comments

@srenatus
Copy link
Contributor

srenatus commented Apr 4, 2025

Discussed in https://github.com/orgs/open-policy-agent/discussions/686

Originally posted by loekensgard April 4, 2025
Hi,

I am currently configuring distributed tracing for OPA using the following configuration:

distributed_tracing:
  type: grpc
  address: <address>
  service_name: <custom_name>
  resource:
    deployment_environment: Dev/Qa/Prod

I would like to know if there is a way to exclude the /health endpoint from being traced. I am aware that other languages have filters to support this functionality, but I couldn't find any documentation for OPA regarding this.

Any guidance or suggestions would be greatly appreciated.

Thank you!

Additionally, it would be helpful if we could configure it to exclude the /health endpoint from tracing only if the response status is 200. If the /health endpoint returns a 400 status or higher, it should still be logged.

@srenatus srenatus transferred this issue from open-policy-agent/community Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant