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 moda-anthropic 0.1.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 moda-anthropic 0.1.0
File Size Uploaded
moda_anthropic-0.1.0.tar.gz 682.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moda-anthropic 0.1.0
File Interpreter ABI Platform
moda_anthropic-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 700.7 kB

Release files / moda_anthropic-0.1.0.tar.gz

Download URL moda_anthropic-0.1.0.tar.gz
Size 682.2 kB
Tags Source
SHA-256 checksum
How to use checksums
deaedacc988154102aa03d9abfe2f9324b830ee762426ae42cbb8d64e79ce90b
BLAKE2b-256 checksum
How to use checksums
97b17dabe97e94ec6730f85d0a81a117b375167bf094046a81b6a463f8cccf8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.

Transparency log

Release files / moda_anthropic-0.1.0-py3-none-any.whl

Download URL moda_anthropic-0.1.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f2b5fb7498cb5fccb309797df535a32034cf00044d235c8583f3e79479f7ef1
BLAKE2b-256 checksum
How to use checksums
cc9a93374b5800aa8e1bbe8c8813582399cea9ddd2c6dba7329c3408e5ce8f4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.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