withProviderTracing
function withProviderTracing(provider, options?): Provider;Defined in: core/src/otel.ts:45
Observe chat calls without capturing their content.
const traced = withProviderTracing(provider);Wrap the final provider, outside registry, fallback, gate and watchdog layers. Each consumed stream gets one CLIENT span, including queueing and consumption pauses. No attempts are counted and no retry, read-ahead or cancellation is added. Speech, transcription, decisions, standalone auth and agent runs are not covered. Re-wrapping an owned wrapper replaces its tracing options; hidden inner wrappers cannot be deduplicated. HTTP child spans require the host’s context manager.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
provider |
Provider |
options |
ProviderTracingOptions |