Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
OTLP endpoint
If you have an existing OpenTelemetry setup, send traces directly to Respan’s OTLP-compatible endpoint. This works with any OpenTelemetry SDK or collector.Environment variable configuration
.env
SDK configuration
- Python
- JS/TS
- cURL
Ingest API
Construct traces by posting spans as JSON. Every span is a JSON object. Spans with the sametrace_unique_id are grouped into a single trace. Parent-child relationships are defined via span_parent_id.
Endpoint
Span fields
| Field | Type | Required | Description |
|---|---|---|---|
trace_unique_id | string | Yes | Groups spans into a single trace |
span_unique_id | string | Yes | Unique ID for the span |
span_parent_id | string | Parent span ID; omit or null for root spans | |
span_name | string | Name of the span (e.g. "openai.chat") | |
start_time | string | Span start time (RFC3339 UTC) | |
timestamp | string | Span end time (RFC3339 UTC) | |
model | string | Model used | |
input | string / object | Span input data | |
output | string / object | Span output data | |
metadata | object | Custom key-value pairs |