Skip to main content
Anthropic Claude The Netra SDK automatically instruments Anthropic Claude API calls, capturing prompts, completions, token usage, and performance metrics through OpenTelemetry tracing.

Installation

Install the Netra SDK and the Anthropic client library:

Usage

Initialize the Netra SDK with your API key to automatically trace all Anthropic Claude API calls.

Basic Setup

Streaming Responses

The SDK automatically traces streaming responses from Claude.

Session Tracking

Track user sessions and conversations across multiple Claude API calls.

Custom Attributes

Add custom metadata to your Claude API traces for filtering and analysis.

Next Steps

Last modified on March 17, 2026