Skip to main content

Installation

Basic Usage

RDK automatically instruments the Anthropic SDK when initialized:

Async Support

RDK supports async Anthropic calls:

Tool Calling

RDK captures tool calls and their results:

What Gets Captured

For each Anthropic call, RDK captures:

Streaming

Streaming support is coming soon. Currently, streaming calls are passed through without tracing.

Troubleshooting

Traces not appearing

  1. Ensure RDK_API_KEY is set in your environment
  2. Ensure @observe decorator wraps your function
  3. Call shutdown() or flush() to send pending traces

Missing token usage

Some API calls may not return token usage. This is normal for certain configurations.