Setup
Enable instrumentation with a single function call. This automatically tracks all subsequent calls to bothAnthropic and AsyncAnthropic clients.
A single
instrument() call instruments both synchronous and asynchronous clients. You don’t need to call it twice.Usage
Once instrumented, use the Anthropic client as you normally would. Allmessages.create calls are automatically traced.

