OpenTelemetry
Send traces from any OpenTelemetry-instrumented application to Respan.
OpenTelemetry (OTel) is the CNCF standard for distributed tracing. If your application already uses OTel, you can send traces directly to Respan without installing any Respan SDK — just point your OTLP exporter at Respan’s endpoint.
Respan accepts traces via the standard OTLP/HTTP protocol in both JSON and Protobuf formats at /api/v2/traces.
Why use OpenTelemetry with Respan?
- Zero vendor lock-in — Use standard OTel instrumentation, switch backends anytime
- Works with existing instrumentation — Any OTel-compatible library (Traceloop, OpenInference, OpenLIT, custom) sends to Respan
- Full semantic convention support — GenAI, Traceloop, and OpenInference attributes are automatically mapped to Respan fields
- Combine sources — Mix OTel traces with Respan SDK traces in the same dashboard
Quickstart
Option 1: Environment variables
The simplest setup — works with any OTel SDK or instrumentation library.
Then run your application as usual. Any OTel-instrumented code exports traces to Respan automatically.
Option 2: Direct SDK configuration
Python
TypeScript
Option 3: OpenTelemetry Collector
Route traces through an OTel Collector to Respan. Useful when you want to fan out to multiple backends or apply processing.
Supported semantic conventions
Respan automatically maps attributes from three major ecosystems into queryable fields. You can mix and match — all are supported simultaneously.
GenAI semantic conventions
The OTel GenAI semantic conventions are the emerging standard for LLM observability.
Traceloop (OpenLLMetry) conventions
Used by Traceloop and the Respan tracing SDK. These provide workflow/task structure.
OpenInference conventions
Used by OpenInference instrumentors (Arize Phoenix). Respan automatically enriches these into Traceloop/GenAI equivalents.
This means any OpenInference instrumentor works with Respan out of the box — install the instrumentor, point OTLP at Respan, and traces appear with full model/token/input/output data.
Respan-specific attributes
For user tracking, grouping, and metadata:
All other attributes are preserved in the span’s metadata and are queryable in the Respan dashboard.
Using with third-party instrumentors
Any OTel-compatible instrumentation library works with Respan. Just set the OTLP exporter environment variables and install the instrumentor.
Traceloop (OpenLLMetry)
OpenInference
OpenInference span processors
Convert traces from other formats into OpenInference-compatible spans:
Configuration reference
Direct endpoint: https://api.respan.ai/api/v2/traces (for SDK configuration without the base endpoint auto-discovery).