Skip to main content
DSPy

Installation

Install both the Netra SDK and DSPy:

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.
Set these wherever your app runs, including Docker containers and CI jobs.

Getting Started

Trace DSPy signatures and modules:

Advanced Features

Trace DSPy chains and optimization:

Chain of Thought

Trace reasoning chains:

Optimization

Trace DSPy optimizers:

Configuration

Configure DSPy tracing options:

Next Steps

Last modified on November 5, 2026