Skip to content

Raise the OpenTelemetry floor to 1.42 / 0.63b0 and delete its shims - #368

Merged
lesnik512 merged 1 commit into
mainfrom
otel-floor-1-42
Oct 29, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
otel-floor-1-42

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Closes #315.

The OpenTelemetry extras now require api, sdk and exporters 1.42 and instrumentation 0.63b0, up from 1.28 and 0.49b0. Every *-otl extra moves together, since each instrumentation package pins opentelemetry-instrumentation to its own exact version. The new floors let two shims go:

  • FastMCP passes its excluded URLs to OpenTelemetryMiddleware as a comma-joined string, the way FastAPI already does, and no longer imports parse_excluded_urls. At 0.63b0 the middleware takes ExcludeList | str | None and parses a string itself (asgi/__init__.py:582,664).
  • PyroscopeSpanProcessor.force_flush is gone. At sdk 1.42.0 the base SpanProcessor.force_flush returns True, which is what the override did.

I checked both against the v1.42.0 and v0.63b0 sources, and that 0.63b0's opentelemetry-semantic-conventions pins opentelemetry-api==1.42.0, so the two floors pair up. The otl comment in pyproject.toml now explains why the floor is 1.42 rather than 0.49b0's pkg_resources reason. ADR 0008 names the new floor.

Tests

None are new. As the issue says, no behaviour changes: the existing suite covers both code paths, and the floors job covers the new floors. The deleted override was # pragma: no cover, so coverage stays at 100%.

The full suite passes, 551 tests at 100% coverage (just test-ci). just lint (including ty), just adr-check and just docs-build pass too.

I ran the floors job's steps locally for all 23 target and interpreter combinations: five targets on 3.11 to 3.14, and free, fastapi and faststream on 3.15. All 23 resolve opentelemetry-sdk 1.42.0 and opentelemetry-instrumentation 0.63b0 and pass scripts/floor_smoke.py.

Breaking changes

A project pinned to OpenTelemetry below 1.42 or instrumentation below 0.63b0 can't install 2.0. opentelemetry-sdk 1.42.0 was released on 2026-05-19.

@lesnik512 lesnik512 added this to the 2.0.0 milestone Oct 29, 2026
@lesnik512
lesnik512 merged commit 89475d3 into main Oct 29, 2026
37 checks passed
@lesnik512
lesnik512 deleted the otel-floor-1-42 branch October 29, 2026 13:28
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.

Raise the OpenTelemetry floor to 1.42 / 0.63b0 and delete the shims it carries

1 participant