Skip to content

feat(http): add --otlp-tracing-filter to exclude HTTP paths from Open…#887

Draft
bastiansmn wants to merge 1 commit into
huggingface:mainfrom
bastiansmn:fix/allow-blacklist-opentelemetry-tracing
Draft

feat(http): add --otlp-tracing-filter to exclude HTTP paths from Open…#887
bastiansmn wants to merge 1 commit into
huggingface:mainfrom
bastiansmn:fix/allow-blacklist-opentelemetry-tracing

Conversation

@bastiansmn

Copy link
Copy Markdown

…Telemetry tracing

Health checks, metrics scrapes, and other probe endpoints generate noise in OpenTelemetry traces without revealing meaningful traffic patterns. The new --otlp-tracing-filter flag (repeatable, or comma-separated via env var) accepts a list of exact HTTP paths that should produce no OTEL span. Internally OtelAxumLayer.filter() is used so excluded paths emit tracing::Span::none() with zero overhead on the hot path.

What does this PR do?

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline?
  • Was this discussed/approved via a GitHub issue or the forum? Please add a link to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the documentation guidelines.
  • Did you write any new necessary tests? If applicable, did you include or update the insta snapshots?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

…Telemetry tracing

Health checks, metrics scrapes, and other probe endpoints generate noise
in OpenTelemetry traces without revealing meaningful traffic patterns.
The new --otlp-tracing-filter flag (repeatable, or comma-separated via env var)
accepts a list of exact HTTP paths that should produce no OTEL span.
Internally OtelAxumLayer.filter() is used so excluded paths emit
tracing::Span::none() with zero overhead on the hot path.
@bastiansmn bastiansmn marked this pull request as draft June 26, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant