quotient.tracing.start_span
as a context manager or access the active span via OpenTelemetry utilities.
Create a Manual Span
custom_span.py
Best Practices
- Give spans descriptive names that identify the step or component (e.g.,
reranker
,sql-query
). - Set attributes for metrics, inputs, or decisions you care about—anything that helps debug later.
- Keep spans narrow in scope so they clearly mark a single unit of work.
Next: Vector Database Instrumentation