Skip to content

fix: require openinference-instrumentation-anthropic 3.1.1 - #293

Merged
PabloPardoGarcia merged 4 commits into
mainfrom
pablo/rius-1878-sdks-raise-the-openinference-instrumentor
Nov 17, 2026
Merged

PabloPardoGarcia merged 4 commits into
mainfrom
pablo/rius-1878-sdks-raise-the-openinference-instrumentor

Conversation

@PabloPardoGarcia

@PabloPardoGarcia PabloPardoGarcia commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Raises the openinference-instrumentation-anthropic floor from >=2.1.0 to >=3.1.1 in the anthropic extra and the instruments group. Releases before 3.1.1 record a second span for each call with anthropic 1.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 older anthropic, 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.py now 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

PabloPardoGarcia and others added 4 commits November 17, 2026 09:30
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
PabloPardoGarcia merged commit 4df9784 into main Nov 17, 2026
12 checks passed
@PabloPardoGarcia
PabloPardoGarcia deleted the pablo/rius-1878-sdks-raise-the-openinference-instrumentor branch November 17, 2026 09:03
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.

1 participant