Quick Start
Useenrich_session() to add metrics to the entire trace, or enrich_span() to add metrics to a specific operation.
On the Session
Add metrics that apply to the entire trace:On a Span
Add metrics to a specific function or operation:Concepts
Client-Side vs Server-Side Evaluations
Client-side metrics are not overwritten by server-side evaluators with the same name.
Metrics Schema
Themetrics object accepts any structure:
Data Types
Nested Data
Access nested fields when charting:metrics.step_evals.0.passed
Nesting limits: Max 5 levels of nested objects, max 2 levels of nested arrays.
Learn More
Chart metrics
Visualize metrics in dashboards
Server-side evaluators
Run evaluations post-ingestion
LLM evaluators
Use LLMs to evaluate outputs
Human annotations
Set up expert review queues
SDK Reference
- Python SDK Reference -
enrich_session(),enrich_span()

