Trace Functions
db.get_trace()
Get a single trace by identifier.
Returns:
Trace or None
See the reference for Trace for more information.
db.get_traces()
Get multiple traces with filtering and pagination.
Returns:
tuple[List[Trace], int] - (traces, total_count)
Span Functions
db.get_span()
Get a single span by ID.
Returns:
Span or None
See the reference for Span for more information.
db.get_spans()
Get multiple spans for a trace or parent.
Returns:
List[Span]
Unlike
get_traces(), get_spans() returns a list without a count.Example: Analyzing a Run
See Also
- Trace Reference - Full
Traceobject definition - Span Reference - Full
Spanobject definition