Trace Export
Export durable tool-call and voice-isolation infra trace spans as OTLP/JSON for external observability collectors.
Endpoint
Export the workspace's durable trace spans over a time window as OpenTelemetry Protocol (OTLP/HTTP JSON) spans: gen_ai.* tool-call spans and the per-call voice-isolation voice.* infra spans (allocate / media-attach / reap). Read-only; admin/owner role required; dark behind OTEL_TRACE_EXPORT_ENABLED (404 when off). Paginated PULL API — extract .resourceSpans before forwarding to an OTLP collector. Attributes are an allowlist of tool-call + infra metadata; the raw tool-result error text is NOT exported (PHI-safe by construction).
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Inclusive lower bound on span effective_at (ISO-8601).
Exclusive upper bound on span effective_at (ISO-8601).
Max spans per page (1-1000).
500Opaque page cursor — round-trip the value from the previous response.
Successful Response
Paginated PULL response — NOT a bare OTLP ExportTraceServiceRequest.
resourceSpans is OTLP/JSON-conformant; to forward to an OTLP collector,
extract .resourceSpans and re-wrap as {"resourceSpans": [...]} (a
strict protojson push receiver rejects the has_more/continuation_token
siblings). Round-trip continuation_token to page.
Validation Error
Example Request
Response Body
Example Response
OTLP/JSON Encoding
Exported Attributes
Resource Metadata
Forwarding to an OTLP Collector
Pagination
Errors
Last updated
Was this helpful?

