Repository navigation
fix: require openinference-instrumentation-anthropic 3.1.1 - #293
Merged
PabloPardoGarcia merged 4 commits intoNov 17, 2026
Merged
PabloPardoGarcia merged 4 commits into
PabloPardoGarcia merged 4 commits into
Conversation
Releases before 3.1.1 record a second span for each call with anthropic 1.14 or later. Raise the floor in the anthropic extra and the instruments group, and drop the README advice to stay on 2.x.
The 3.1.1 wheel already stops the SDK's chat span for a call it traces; 3.2.0 only added Python 3.15 support.
PabloPardoGarcia
deleted the
pablo/rius-1878-sdks-raise-the-openinference-instrumentor
branch
November 17, 2026 09:03
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.
Raises the
openinference-instrumentation-anthropicfloor from>=2.1.0to>=3.1.1in theanthropicextra and theinstrumentsgroup. Releases before 3.1.1 record a second span for each call withanthropic1.14 or later.pyproject.toml: both floors.uv.lock: metadata only; the locked version (3.3.5) is unchanged.README.md: drops the advice to keep the instrumentation on 2.x with an olderanthropic, which the new floor no longer allows.The native chat-span demotion (
rius/_native_spans.py) stays; it is not gated on the instrumentor version.tests/test_anthropic_native_span.pynow dates the stopped SDK chat span to 3.1.1 rather than 3.2.0: the 3.1.1 wheel already has the fix, and 3.2.0 only added Python 3.15 support.Tested: ruff, ruff format, mypy, build, full pytest on the locked 3.3.5 (3125 passed), and the extras-smoke registry test. On the floor:
uv run --with 'openinference-instrumentation-anthropic==3.1.1' python -m pytest(the same interpreter reports version 3.1.1) gives 3125 passed. In that run, the native-span demotion tests skip as "OpenInference stops the SDK's chat span (3.1.1 on)", which confirms the fix is in 3.1.1.Closes RIUS-1878