Repository navigation
Cap opentelemetry-api below 1.46 in the openenv extra - #192
Merged
Merged
Conversation
opentelemetry-api 1.46.0, released on 4 Dec, made get_logger() take only the name positionally. fastapi 0.165.1's request telemetry still passes the version and provider positionally (fastapi/telemetry/_asgi.py:332), so the OpenEnv server answers every WebSocket session with HTTP 500 and test_server_sessions_one_at_a_time fails. Drop the cap once fastapi passes them by keyword.
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.
Caps
opentelemetry-apibelow 1.46 in theopenenvextra, so the OpenEnv server tests pass again in CI.Cause
opentelemetry-api1.46.0 was published on PyPI on 2026-12-04 at 17:20 UTC. In it,get_loggertakes only the name positionally (opentelemetry/logs/_internal/__init__.py:500, type hints left out):In 1.45.3 the version and the provider were positional.
fastapi0.165.1, the latest release, still passes them positionally in its request telemetry (fastapi/telemetry/_asgi.py:332, one line here):OpenEnv's server runs on FastAPI, so every WebSocket session fails with
TypeError: get_logger() takes 1 positional argument but 3 positional arguments (and 1 keyword-only argument) were given. The client sees HTTP 500, andtests/test_openenv_target.py::test_server_sessions_one_at_a_timefails.CI installs
opentelemetry-apithroughanthropic(viaany-llm-sdk) andfastapi(viaopenenv), with no upper bound, so every run that resolves dependencies after 17:20 UTC on 4 Dec gets 1.46.0. The last green runs started before 1.46.0 was published:devon 3 Dec at 09:12 UTC, and an open PR on 4 Dec at 15:57 UTC, which installed 1.45.3. A run on 4 Dec at 18:19 UTC, with 1.46.0, failed intest (3.13)andfull-test (3.11)on this test alone, with4270 passedand4273 passedbeside it.Fix
openenv = ["openenv>=0.10", "opentelemetry-api<1.46"]inpyproject.toml, with a comment that says why and when to drop the cap. The cap is in theopenenvextra because the failing call comes from FastAPI, which that extra installs. Installs without the extra are unchanged. As of 4 Dec, no newerfastapioropentelemetry-apirelease exists that this could point to instead.Tests
With the extras the test job installs (
.[dev,tracing,inspect,openenv]), Python 3.13:opentelemetry-api1.46.0:test_server_sessions_one_at_a_time: 1 failed, with theTypeErrorabove.opentelemetry-api1.45.3: 1 passed.ruffto check.Drafted with Claude Opus 5.5 (Anthropic). The author made the methodological choices, had every figure checked against its source, and is responsible for the content.