Repository navigation
[bugfix] packaging: cap opentelemetry-api<1.46 to avoid FastAPI ASGI TypeError - #691
Merged
FayeSpica merged 1 commit intoDec 4, 2026
Conversation
1 task
5 tasks done
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.
Summary
opentelemetry-api<1.46inpyproject.tomlalongsidefastapi>=0.115,<1to unblock wheel-based CI and desktop runtime builds (checks / frontendscripts/verify_install.pyandchecks / desktop / macosapps/desktop/scripts/prepare-runtime.mjs).opentelemetry-api==1.46.0(published on PyPI) changed_logs.get_logger()and breaksfastapi==0.165.1's_native_telemetryASGI wrapper withTypeError: get_logger() takes 1 positional argument but 3 positional arguments (and 1 keyword-only argument) were givenon every HTTP request.requirements.txtalready pinsopentelemetry-api==1.45.1.Linked issue
No GitHub issue is linked; this is a targeted packaging hotfix restoring CI after the upstream
opentelemetry-api==1.46.0release.Fixes #NorRefs #Nis included, or no issue appliesLabels
type:bugarea:ciarea:installarea:desktopLabels applied
Test plan
2439c6c59cfaeee754eefa7bdf127eddadb34af3):uv pip compile pyproject.toml --quiet | grep -iE '^(fastapi|opentelemetry-api)=='->fastapi==0.165.1,opentelemetry-api==1.45.3.fastapi==0.165.1+opentelemetry-api==1.46.0):TestClient(app).get('/health')raisesTypeError: get_logger() takes 1 positional argument but 3 positional arguments (and 1 keyword-only argument) were given(BEFORE_EXIT=1).fastapi==0.165.1+opentelemetry-api==1.45.3):TestClient(app).get('/health')returns200 OK(AFTER_OK 0.165.1 1.45.3).Release checks(.github/workflows/ci.yml), includingchecks / frontend(scripts/verify_install.pywheel build/install),checks / desktop / macos,checks / desktop / windows, andchecks / python.83b142f02f03cf670dab65ebef12772550f550df2439c6c59cfaeee754eefa7bdf127eddadb34af3Release checks(wheel installscripts/verify_install.pyand packaged macOS/Windows desktop runtime smoke) are pending CI.Evidence that it works
Visual evidence is N/A because this is a single-line packaging dependency constraint in
pyproject.tomlwith no UI or visual changes.Non-visual runtime receipts on
2439c6c59cfaeee754eefa7bdf127eddadb34af3:Resolution:
uv pip compile pyproject.toml --quiet->fastapi==0.165.1,opentelemetry-api==1.45.3(excludes broken1.46.0).Before (
fastapi==0.165.1+opentelemetry-api==1.46.0):TestClient(app).get('/health')exits1withTypeError: get_logger() takes 1 positional argument but 3 positional arguments (and 1 keyword-only argument) were givenatfastapi/telemetry/_asgi.py:332.After (
fastapi==0.165.1+opentelemetry-api==1.45.3):TestClient(app).get('/health')exits0withAFTER_OK 0.165.1 1.45.3.Applicable evidence attached and any visual N/A explained
Provider verification
No real model provider calls were made.
Bilingual UI
No user-facing copy changed.