Installation
Classes
RespanAgnoExporter
Core exporter that converts Agno traces to Respan format.| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | None | None | Respan API key. Falls back to RESPAN_API_KEY env var. |
base_url | str | None | None | API base URL. Falls back to RESPAN_BASE_URL. |
Methods
| Method | Description |
|---|---|
export(trace_or_spans) | Export traces to Respan. |
export_trace(trace_or_spans) | Alias for export(). |
build_payload(trace_or_spans) | Build Respan payload from traces. |
RespanAgnoInstrumentor
OpenTelemetry instrumentor that patches Agno’s span processors to send data to Respan.Class method
| Method | Description |
|---|---|
instrument(api_key, endpoint, base_url, environment, customer_identifier) | Initialize and enable instrumentation. |
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | None | None | Respan API key. |
endpoint | str | None | None | Ingest endpoint URL. |
base_url | str | None | None | API base URL. |
environment | str | None | None | Environment label. |
customer_identifier | str | None | None | Default customer identifier. |
Usage
Internal features
- Span deduplication cache (10k max by default)
- Automatic conversion from Agno trace format to Respan spans