Ingest traces via OTLP
Authentication
Request
Array of resource spans. Each element represents spans from a single resource (service).
Array of resource spans. Each element represents spans from a single resource (service).
Send traces to Respan using the standard OTLP/HTTP protocol. Any OpenTelemetry-compatible SDK can export directly to this endpoint.
For the easiest setup, use the Respan tracing SDK or the OpenTelemetry integration which auto-configures the exporter. This endpoint is for direct OTLP/HTTP access.
The request body follows the standard OTLP ExportTraceServiceRequest schema.
resourceSpans array required: Array of resource spans. Each element represents spans from a single resource (service).
resource object: Resource metadata for the spans.
attributes array: Key-value attributes identifying the resource. Set service.name to identify your application.
scopeSpans array required: Array of instrumentation scope spans.
scope object: Instrumentation scope metadata (library name and version).
spans array required: Array of span objects.
traceId string required: Hex-encoded trace identifier (16 bytes / 32 hex chars).
spanId string required: Hex-encoded span identifier (8 bytes / 16 hex chars).
parentSpanId string: Hex-encoded parent span ID. Empty for root spans.
name string required: Name of the span operation.
startTimeUnixNano string required: Start time as nanoseconds since Unix epoch (string).
endTimeUnixNano string required: End time as nanoseconds since Unix epoch (string).
status object: Span status. code: 1 (OK) or 2 (ERROR). message: error description.
attributes array: Span attributes as key-value pairs. See Recognized attributes below.
events array: Span events (e.g., exceptions). Each event has name, timeUnixNano, and attributes.
All other attributes are stored in the span’s metadata and are queryable via the metadata filter in the Respan UI.
Attribute values are wrapped in typed objects per the OTLP spec:
API key authentication. Get your API key from https://platform.respan.ai/platform/api-keys