Optionalconfig: Partial<TelemetryConfig>Start a trace span
OptionalparentSpan: AISpanGet 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
Get all recorded spans
Get span by ID
Get spans by type
Get failed spans
Get statistics
In-memory implementation of AITelemetry for development and testing