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
What is OpenTelemetry?
OpenTelemetry (OTel) is an open-source observability framework for generating, collecting, and exporting telemetry data. If your application is already instrumented with OTel, you can send traces directly to Respan without installing any additional SDK — just configure Respan as your OTLP exporter endpoint. Respan accepts traces via the standard OTLP/HTTP protocol in both JSON and Protobuf formats.Setup
Configuration
When using environment variables, set:| Variable | Description |
|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT | https://api.respan.ai/api |
OTEL_EXPORTER_OTLP_HEADERS | Authorization=Bearer YOUR_RESPAN_API_KEY |
OTEL_EXPORTER_OTLP_PROTOCOL | http/json (or http/protobuf) |
Attributes
Respan automatically extracts Gen AI semantic conventions and maps them to queryable fields:| Attribute | Description |
|---|---|
gen_ai.request.model | Requested model name |
gen_ai.usage.prompt_tokens | Input token count |
gen_ai.usage.completion_tokens | Output token count |
gen_ai.prompt.{N}.role / .content | Input messages |
gen_ai.completion.{N}.role / .content | Output messages |
| Attribute | Description |
|---|---|
respan.customer.identifier | Customer/user identifier |
respan.thread.id | Thread/conversation identifier |
respan.trace_group.id | Link related traces |
respan.metadata | JSON object merged into span metadata |
metadata and are queryable in the Respan UI. For the full list, see the OTLP ingest API reference.
Observability
Once configured, your traces will appear on the Traces page in Respan.
- Python: Django, Flask, FastAPI, LangChain, LlamaIndex
- JS/TS: Express, Next.js, NestJS
- Go, Java, .NET: All standard OTel SDKs
@workflow and @task decorators, see Respan.