Upgrade FastAPI to 0.141.1 and the OpenTelemetry stack to 0.65b0/1.44.0 - #10101
Draft
claude[bot] wants to merge 1 commit into
Draft
Upgrade FastAPI to 0.141.1 and the OpenTelemetry stack to 0.65b0/1.44.0#10101claude[bot] wants to merge 1 commit into
claude[bot] wants to merge 1 commit into
Conversation
Bump FastAPI from 0.136.3 to 0.141.1 and the OpenTelemetry instrumentation and exporter packages from the 0.60b0/1.39.0 line to 0.65b0/1.44.0. The two must move together: FastAPI 0.137+ restructured router.routes, which breaks OpenTelemetry instrumentation older than 0.64b0. This bump unblocks native FastAPI frontend serving and picks up the instrumentation fix. Refs #10097
claude
Bot
force-pushed
the
claude/fastapi-otel-upgrade
branch
from
July 31, 2026 10:25
0b29e97 to
c76bfc0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Damien Garros, Patrick Ogenstad · Slack thread
Why
This is the enabling dependency bump for native FastAPI frontend serving. FastAPI 0.137+ restructured
router.routes, and the OpenTelemetry instrumentation we pin (older than0.64b0) breaks against that structure. The frontend-serving refactor cannot land until both FastAPI and the OpenTelemetry stack move up together, so this PR does the coordinated version bump on its own.Goal: land the version bump in isolation so the runtime-behavior change can be reviewed separately on top of it.
Non-goals: no runtime/behavior change. The existing frontend serving (hand-rolled
/assets+/faviconsstatic mounts and the Jinja single-page-app catch-all) is left exactly as it is ondevelop.Refs #10097
What changed
Before
0.136.3api/sdk/ exporters / proto)1.39.00.60b0After
0.141.11.44.00.65b0Only
pyproject.toml,uv.lock, and a changelog fragment change. No application code changes; no runtime behavior change.schema/openapi.jsonregenerates with no diff.The lockfile update is: FastAPI bumped, 12 OpenTelemetry packages bumped, and the now-unneeded transitive deps
importlib-metadataandzippremoved (OpenTelemetry1.44dropped itsimportlib-metadatadependency).This is a coordinated OpenTelemetry-stack bump, not just a FastAPI bump. Core
1.39 → 1.44and contrib0.60b0 → 0.65b0must ship together with the FastAPI bump: FastAPI ≥ 0.137 restructuredrouter.routes, which breaks OpenTelemetry instrumentation older than0.64b0. Bumping FastAPI without the OpenTelemetry stack would leave instrumentation broken.How to review
The diff is mechanical (pins + lock), but the risk is in telemetry, which has no automated test coverage in this repo. A reviewer should:
opentelemetry-exporter-otlp-proto-grpc) and HTTP/protobuf (opentelemetry-exporter-otlp-proto-http) — and confirm spans still arrive.OTEL_SEMCONV_STABILITY_OPT_INstays unset. The HTTP semantic-convention default is unchanged across this bump; leaving the opt-in unset keeps the current attribute names, so it should not be set as part of this change.Watch-items (silent behavior deltas in the OpenTelemetry bump)
process.command_args/process.command_lineresource attributes are dropped in core1.44— if any dashboard/alert keys off those resource attributes, it will go blank.5s → 1s— more frequent export flushes; benign, but worth knowing when reading collector traffic.How to test
Import, collection, and a representative unit module (
backend/tests/unit/webhook/test_classifier.py, 18 passed) all pass on the bumped stack.uv run invoke schema.generate-jsonschemaproduces no diff.Impact & rollout
OTEL_SEMCONV_STABILITY_OPT_INintentionally stays unset.Checklist
Generated by Claude Code