Main AI Telemetry interface
Start a trace span
Optional
Get current active span
Set active span
Record LLM metrics
Record agent execution metrics
Record RAG retrieval metrics
Record workflow execution metrics
Record guardrail evaluation metrics
Record tool execution metrics
Get current trace context
Set trace context (for distributed tracing)
Get all recorded metrics
Clear all recorded data
Add a telemetry exporter
Flush all telemetry data
Main AI Telemetry interface