Create a trace (OTLP)
Create a trace (OTLP)
Send traces using the standard [OTLP/HTTP](https://opentelemetry.io/docs/specs/otlp/) protocol. Any OpenTelemetry-compatible SDK can export directly to this endpoint. Accepts both `application/json` and `application/x-protobuf` content types.
For the easiest setup, use the [Respan tracing SDK](/docs/sdks/python-sdk/overview) or the [OpenTelemetry integration](/docs/integrations/opentelemetry) which auto-configures the exporter.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Request
This endpoint expects an object.
resourceSpans
Array of resource spans. Each element represents spans from a single resource (service).
Response
Spans accepted.
partialSuccess
Errors
400
Bad Request Error
401
Unauthorized Error