Skip to main content

OpenTelemetry Anthropic instrumentation

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

overmind_instrumentation_anthropic-0.53.0.tar.gz (688.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file overmind_instrumentation_anthropic-0.53.0.tar.gz.

File metadata

  • Download URL: overmind_instrumentation_anthropic-0.53.0.tar.gz
  • Upload date:
  • Size: 688.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for overmind_instrumentation_anthropic-0.53.0.tar.gz
Algorithm Hash digest
SHA256 28c0b59dbf0ff7596567e56542b13bdb9b0b59c765814541f8e874125a339d70
MD5 d95b424eafb2549c0f7f3b2fd2951a2f
BLAKE2b-256 c26162f8bc42d319f50332bb54d796818f66d6f57c6cf9e52a5b2a581f9f2e23

See more details on using hashes here.

File details

Details for the file overmind_instrumentation_anthropic-0.53.0-py3-none-any.whl.

File metadata

  • Download URL: overmind_instrumentation_anthropic-0.53.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for overmind_instrumentation_anthropic-0.53.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f963a201a9c73ddc037bc9125741cc768794bb20b0550b2de5153e76baad2002
MD5 ebc1aad014df5c0ee08ddf82fcf30bd5
BLAKE2b-256 943764a63f996dfd5dc0ac7132c7cb33d80b75c771a7b9377af860924158fddf

See more details on using hashes here.

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