Instrumentation
Overview
respan-tracing auto-instruments supported libraries to capture LLM calls, vector DB queries, and framework operations as spans — no code changes required. When a supported library is installed, its calls are automatically traced.
This page covers built-in auto-instrumentation via RespanTelemetry. For instrumentation plugins that work with the Respan entry point (e.g., OpenAI Agents, OpenAI SDK), see Instruments.
Configure
Enable all (default)
Enable specific instruments only
Block specific instruments
Disable all auto-instrumentation
Disable auto-instrumentation (when using plugins)
When using instrumentation plugins with the Respan entry point, set auto_instrument=False on RespanTelemetry to avoid duplicate spans:
Available instruments
AI/ML providers
Cloud AI services
Vector databases
Frameworks
Infrastructure
THREADING is always enabled by default for proper context propagation across threads. It can be explicitly blocked with block_instruments.
Environment variables
Troubleshooting
If you see warnings like Failed to initialize Requests instrumentation, install the optional OpenTelemetry instrumentations:
This is optional — tracing works without them. Only needed if your app uses requests or urllib3 and you want those calls traced.