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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for opentelemetry_instrumentation_anthropic-0.9.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25c2b0541b4afb83c498979055167606855dc1bcd4f4845c8cd22e78cbf3fbf3 |
|
MD5 | b6a3da13543685e38040b9b4231a9516 |
|
BLAKE2b-256 | 0a265438ad99d1393251c1d5de1e45c24ff4109b7080c21bd7f3eb22d7f9a17c |
Hashes for opentelemetry_instrumentation_anthropic-0.9.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d3ce76e69cf8b8ded000264c3bfd80378c3e5b4aa57e215b02f04d0b936c32 |
|
MD5 | 90260da4338e52c7d748789371f0af2e |
|
BLAKE2b-256 | 5a3f305463bb6e471c81dff61ba39bf412245586c53122c3a2413fadb801fe97 |