Anthropic Tracing
Instrument LLM calls made using Anthropic's SDK and view traces in Arize.
Anthropic is a leading provider for state-of-the-art LLMs. The Anthropic SDK can be instrumented using the openinference-instrumentation-anthropic
package. Traces can be viewed in Arize.
Launch Arize
To get started, sign up for a free Arize account and get your Space ID and API Key.
Install
API Key Setup
Ensure your Anthropic API key is configured. The SDK typically uses the ANTHROPIC_API_KEY
environment variable:
Setup
Use the register
function to connect your application to Arize and instrument the Anthropic client:
Run Anthropic
A simple Anthropic application that is now instrumented:
Observe
Now that you have tracing setup, all invocations will be streamed to your Arize account for observability and evaluation.
Resources:
Last updated
Was this helpful?