Skip to main content

Moda Anthropic instrumentation for LLM observability

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moda_anthropic-0.1.0.tar.gz (682.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moda_anthropic-0.1.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file moda_anthropic-0.1.0.tar.gz.

File metadata

  • Download URL: moda_anthropic-0.1.0.tar.gz
  • Upload date:
  • Size: 682.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moda_anthropic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 deaedacc988154102aa03d9abfe2f9324b830ee762426ae42cbb8d64e79ce90b
MD5 636d961071dca5aae1efb1931f965d98
BLAKE2b-256 97b17dabe97e94ec6730f85d0a81a117b375167bf094046a81b6a463f8cccf8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for moda_anthropic-0.1.0.tar.gz:

Publisher: publish.yml on ModaLabs/moda-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moda_anthropic-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: moda_anthropic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moda_anthropic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f2b5fb7498cb5fccb309797df535a32034cf00044d235c8583f3e79479f7ef1
MD5 9d2e4a846ad6f8b4cd9f51a9374a1b2e
BLAKE2b-256 cc9a93374b5800aa8e1bbe8c8813582399cea9ddd2c6dba7329c3408e5ce8f4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for moda_anthropic-0.1.0-py3-none-any.whl:

Publisher: publish.yml on ModaLabs/moda-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page