Trace DSPy programs with Netra auto-instrumentation. Monitor module execution, optimizer runs, and LLM calls in compiled programs.
Installation
Install both the Netra SDK and DSPy:
pip install netra-sdk dspy-ai
Usage
Initialize the Netra SDK to automatically trace all DSPy operations:Set your Netra endpoint and API key before you call Netra.init(). Without NETRA_OTLP_ENDPOINT, the SDK prints spans to the console instead of sending them to Netra, and your dashboard stays empty.