Skip to content

Reject commas in FastAPI and FastMCP tracing exclusions - #417

Merged
lesnik512 merged 1 commit into
mainfrom
fix/393-comma-exclusions
Nov 3, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/393-comma-exclusions

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Closes #393.

FastAPI and FastMCP pass exclusions to OpenTelemetry as comma-separated strings. Reject entries containing commas at config construction and identify the offending regex. Litestar receives a list and continues to honor comma-containing patterns.

Breaking changes

FastAPIConfig and FastMcpConfig now raise ConfigurationError at construction for comma-containing OpenTelemetry exclusion patterns.

Verification

  • Confirmed both config regressions failed before the fix and passed afterward.
  • Verified that a matching Litestar request exports no spans when the exclusion regex contains a comma.
  • Ran lint, type checks, and the full suite. All 622 tests passed with 100% coverage.

Closes #393

Breaking changes: FastAPIConfig and FastMcpConfig now reject exclusion regexes containing commas at construction.
@lesnik512
lesnik512 merged commit ce17dd0 into main Nov 3, 2026
35 checks passed
@lesnik512
lesnik512 deleted the fix/393-comma-exclusions branch November 3, 2026 05:44
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.

Reject commas in opentelemetry_excluded_urls entries

1 participant