$npx skillfedfor your agent

openinference-instrumentation-anthropic

OpenInference Anthropic Instrumentation

Worth itPyPI MonitoringReleased Aug 2026651.1K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — openinference_instrumentation_anthropic-1.1.2-py3-none-any.whl
v1.1.2 · released 2026-08-07 · Python <3.15,>=3.10 · 7 runtime deps: openinference-instrumentation, openinference-semantic-conventions, opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, typing-extensions, wrapt

Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real observability gap for Anthropic users. If you're already using or considering OpenTelemetry and an OTLP-compatible collector, this is a straightforward way to gain visibility into LLM interactions.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires an OpenTelemetry collector endpoint to receive traces; ANTHROPIC_API_KEY environment variable must be set.
  • Low friction installation with a pure-Python wheel.
  • Actively maintained with a release 7 days ago and no known vulnerabilities.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions.

last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 1,147 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 651,145 downloads/mo, #5,553 on PyPI

Verify before relying

pip install openinference-instrumentation-anthropic

from anthropic import Anthropic
from openinference.instrumentation.anthropic import AnthropicInstrumentor
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import SimpleSpanProcessor

tracer_provider = trace_sdk.TracerProvider()
AnthropicInstrumentor().instrument(tracer_provider=tracer_provider)

client = Anthropic()
response = client.messages.create(model="claude-3-opus-20240229", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}])
  • Performance overhead of instrumentation on production Anthropic API calls.
  • Whether custom span attributes and session tracking work as documented.
Same gist for agents: .md · .json

What it is and what it does

This package wraps Anthropic's Python client to automatically capture detailed traces of all API calls—including Messages, Completions, and their async variants—and exports them to any OpenTelemetry-compatible backend. It sits between your code and the Anthropic client, intercepting requests and responses without requiring code changes beyond a single instrumentation call.

The traces include request parameters, response data, and execution timing, formatted according to OpenInference conventions so they integrate seamlessly with observability platforms. It's designed for developers building LLM applications who need visibility into what their Anthropic calls are doing—latency, token usage, errors, and behavior patterns—without manually logging each interaction.

Use it for

  • Debug Anthropic API calls in development by viewing detailed traces and attributes.
  • Monitor production LLM application performance and identify slow or failing Anthropic requests.
  • Track token usage and cost across Anthropic API calls for billing and optimization.
  • Analyze conversation patterns and model behavior across multiple Anthropic client instances.
  • Correlate Anthropic traces with other application metrics in a unified observability platform.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real observability gap for Anthropic users. If you're already using or considering OpenTelemetry and an OTLP-compatible collector, this is a straightforward way to gain visibility into LLM interactions.

Install

openinference-instrumentation-anthropic on PyPI

Before you install

Low friction installation with a pure-Python wheel. Actively maintained with a release 7 days ago and no known vulnerabilities. Depends on well-established OpenTelemetry and OpenInference libraries.

Requires an OpenTelemetry collector endpoint to receive traces; ANTHROPIC_API_KEY environment variable must be set.

License in practice

Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions.

Quickstart

pip install openinference-instrumentation-anthropic

from anthropic import Anthropic
from openinference.instrumentation.anthropic import AnthropicInstrumentor
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import SimpleSpanProcessor

tracer_provider = trace_sdk.TracerProvider()
AnthropicInstrumentor().instrument(tracer_provider=tracer_provider)

client = Anthropic()
response = client.messages.create(model="claude-3-opus-20240229", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}])

Verify before relying

  • Performance overhead of instrumentation on production Anthropic API calls.
  • Whether custom span attributes and session tracking work as documented.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release <3.15,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
7 packages
openinference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionstyping-extensionswrapt
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads651,145 / month, #5,553 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: openinference_instrumentation_anthropic-1.1.2-py3-none-any.whl

Tags

Capabilities
anthropic api tracingopentelemetry instrumentationllm observabilitytrace anthropic messagesphoenix tracing integrationopeninference instrumentation
Topics
llm-observabilityopentelemetryanthropic-integration

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “anthropic api tracing”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also openinference-instrumentation-agno · openinference-instrumentation-haystack · openinference-instrumentation-llama-index · openinference-instrumentation-bedrock · openinference-instrumentation-litellm · openinference-instrumentation-pydantic-ai · openinference-instrumentation-openai · openinference-instrumentation-dspy · arize · arize-phoenix-client