Skip to content

util-http: ignore empty entries in excluded URLs - #5186

Merged
lzchen merged 3 commits into
open-telemetry:mainfrom
LemonCondor:fix/excluded-urls-empty-entries
Nov 11, 2026
Merged

lzchen merged 3 commits into
open-telemetry:mainfrom
LemonCondor:fix/excluded-urls-empty-entries

Conversation

@LemonCondor

Copy link
Copy Markdown
Contributor

Description

In OpenTelemetry contrib, a trailing comma in OTEL_PYTHON_EXCLUDED_URLS (e.g. healthcheck,) could unintentionally disable tracing for all URLs. I fixed the parsing to ignore empty entries and added regression tests to prevent this behavior from recurring.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I am a human and not a bot
  • I have run tox -e precommit
  • I have run tox -e typecheck
  • I have run the relevant tests and linting tox environments

@LemonCondor
LemonCondor requested a review from a team as a code owner October 19, 2026 06:36
@linux-foundation-easycla

linux-foundation-easycla Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-11-11 17:25 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@opentelemetry-pr-dashboard

This comment has been minimized.

A trailing or doubled comma in OTEL_PYTHON_*_EXCLUDED_URLS produced an
empty pattern, so the combined regex matched every URL and tracing was
silently disabled for all requests.
@github-project-automation github-project-automation Bot moved this to Approved PRs in Python PR digest Nov 10, 2026
@xrmx xrmx moved this from Approved PRs to Easy to review / merge / close in Python PR digest Nov 10, 2026
@github-project-automation github-project-automation Bot moved this from Easy to review / merge / close to Approved PRs in Python PR digest Nov 11, 2026
@lzchen
lzchen added this pull request to the merge queue Nov 11, 2026
Merged via the queue into open-telemetry:main with commit 4c22434 Nov 11, 2026
770 checks passed
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Python PR digest Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants