OpenAI
OpenAI streaming
Request usage metadata so the final stream chunk contains token counts:Anthropic
message_start and output usage from message_delta events.
Wrapper arguments
Tracked properties
Failure behavior
The wrappers attempt tracking after a successful provider result. Tracking failures do not replace that result; the SDK emitsNozleTrackingWarning.
For async provider calls, synchronous Nozle tracking runs in a worker thread through asyncio.to_thread().
The wrapper does not expose subscription_id or transaction_id, so track() resolves the customer’s single active subscription and creates a transaction UUID. Use manual queued tracking when you require durable delivery or deterministic IDs.