Integrations / Anthropic Claude

Trace Anthropic Claude calls

To trace Claude calls with Tracify, wrap the Anthropic client with the Tracify SDK. Messages, tool use and streamed responses are recorded as spans with tokens, latency and cost.

Your code

Anthropic Claude

Tracify

One run.

  • 01Model and parameters
  • 02Tool use blocks and results
  • 03Streaming time to first token
  • 04Token usage and cost

Setup

A few lines.

python
import tracify
from anthropic import Anthropic

anthropic = tracify.wrap_anthropic(Anthropic())

reply = anthropic.messages.create(
    model=MODEL,
    max_tokens=100,
    messages=[{"role": "user", "content": "Hello"}],
)

Full details in the documentation. All integrations are listed on the integrations page.

Can I trace tool use with Claude?
Yes. Each tool call the model requests is recorded and linked to the run that made it.

Send your first trace.

Free to start.