Skip to main content

OpenTelemetry Anthropic Instrumentation

This library allows tracing Anthropic prompts and completions sent with the official Anthropic library.

Installation

pip install opentelemetry-instrumentation-anthropic

Example usage

from opentelemetry.instrumentation.anthropic import AnthropicInstrumentor

AnthropicInstrumentor().instrument()

Privacy

By default, this instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.

However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.

To disable logging, set the TRACELOOP_TRACE_CONTENT environment variable to false.

TRACELOOP_TRACE_CONTENT=false

Metadata

Release files for overmind-instrumentation-anthropic 0.53.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for overmind-instrumentation-anthropic 0.53.0
File Size Uploaded
overmind_instrumentation_anthropic-0.53.0.tar.gz 688.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for overmind-instrumentation-anthropic 0.53.0
File Interpreter ABI Platform
overmind_instrumentation_anthropic-0.53.0-py3-none-any.whl Python 3 none any Details

Total release size: 707.1 kB

Release files / overmind_instrumentation_anthropic-0.53.0.tar.gz

Download URL overmind_instrumentation_anthropic-0.53.0.tar.gz
Size 688.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28c0b59dbf0ff7596567e56542b13bdb9b0b59c765814541f8e874125a339d70
BLAKE2b-256 checksum
How to use checksums
c26162f8bc42d319f50332bb54d796818f66d6f57c6cf9e52a5b2a581f9f2e23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / overmind_instrumentation_anthropic-0.53.0-py3-none-any.whl

Download URL overmind_instrumentation_anthropic-0.53.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f963a201a9c73ddc037bc9125741cc768794bb20b0550b2de5153e76baad2002
BLAKE2b-256 checksum
How to use checksums
943764a63f996dfd5dc0ac7132c7cb33d80b75c771a7b9377af860924158fddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.53.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page