OpenInference instrumentation for DSPy
An instrumentation package for recording traces from DSPy modules and model calls.
Published by Arize AI
How to use it
Trace a small DSPy program before and after modifying the module structure. Compare the sequence of calls and inspect which module contributes most to latency.
Run pip install openinference-instrumentation-dspy in the DSPy environment, register it with your tracer provider, and verify the spans on a fixed test input.
- Compatibility
- Python, DSPy, OpenTelemetry
- Monitoring areas
- Program tracing, Module latency
- Access
- Local Python instrumentation. A compatible OpenTelemetry receiver is needed to view traces.
