OpenTelemetry traces
ElevenLabs Agents can export conversations as OpenTelemetry traces encoded as OTLP JSON (resourceSpans). Forward them to Datadog, Grafana Tempo, Honeycomb, or any backend that ingests OTLP.
ElevenLabs does not push traces directly to your OTLP collector. You receive OTLP-shaped JSON from a webhook, API, or monitoring WebSocket and forward it to your backend.
Overview
Export traces from three surfaces. All three share the same trace ID per conversation and elevenlabs.* attribute naming. Span shape and timing differ between post-call/GET (transcript-based) and monitoring (event-based).
Export surfaces
Choosing a surface
- Every completed call in your data warehouse: post-call webhook
- One-off export or repair: GET conversation with
format=opentelemetry - Live supervisor UI or alerting: monitoring WebSocket
- Full fidelity timeline after the fact: post-call webhook or GET conversation
- Tool, MCP, or guardrail events as they happen: monitoring WebSocket
Use traceId or elevenlabs.conversation_id to join data across surfaces. Combine monitoring for live operations, webhooks for durable analytics, and GET for backfill.
You need an OTLP-capable collector or observability vendor for every surface. Post-call webhooks require a workspace webhook endpoint. The GET API and monitoring WebSocket each have their own API key scopes and setup; see the sections below.
Post-call webhook
After a conversation finishes, ElevenLabs sends a POST request when a post-call webhook is configured, events includes transcript, and transcript_format is opentelemetry.
The webhook type is post_call_transcription_otel (not post_call_transcription, which returns JSON transcripts).
Webhook payload
Enable OpenTelemetry transcripts
Configure via the dashboard
Configure via the CLI
Configure via the API
Create a workspace webhook
In the ElevenAgents Dashboard, create a workspace webhook with your HTTPS URL and authentication.
Attach the post-call webhook
Open Agents settings, assign the webhook as the post-call webhook, enable the Transcript event, and turn on OpenTelemetry transcript payloads.

OpenTelemetry transcript webhooks do not include audio. Use post_call_audio if you need
recordings.
Return 2xx for success. 4xx and 5xx count as failures.
Retries apply to transcript (including OpenTelemetry) and audio webhooks only when Enable retries is on for the workspace webhook. Transient errors (5xx, 429, 408) retry up to 5 times; 4xx does not. Repeated failures can auto-disable the webhook. See Post-call webhooks for details and HIPAA exceptions.
Delivery
Trace shape
Each delivery is one complete trace: a root span plus children.
Agent-response spans include elevenlabs.reasoning_content when the delivery contains a reasoning summary.
Timing comes from transcript time_in_call_secs and call metadata:
- The root span covers the whole call, from
start_time_unix_secsforcall_duration_secs. - Each transcript span starts at its
time_in_call_secsand ends when the next transcript entry starts. The last one ends with the call. - A tool span starts with its transcript span and lasts for the tool’s latency, when the latency is known.
The root span sets elevenlabs.source = post_call_webhook. Its status is ERROR when the conversation status is failed or the call metadata records an error, and status.message carries the error reason when there is one. See Attribute reference for every attribute.
GET conversation
Request OpenTelemetry format on Get conversation to receive the same otlp_traces object as the post-call OpenTelemetry webhook, plus the full conversation model.
Requires an API key with CONVAI_READ. With format=json (default), otlp_traces is omitted.
Expected span names include elevenlabs.conversation, elevenlabs.recv.user_transcript, and elevenlabs.recv.agent_response.
Monitoring WebSocket
Real-time monitoring requires an Enterprise workspace or the realtime-monitoring feature flag.
See Real-time monitoring for configuration,
control commands, and access requirements.
Stream OpenTelemetry trace data as OTLP JSON while a conversation is in progress. Each message is a small resourceSpans batch, not one end-of-call trace.
Authentication requires CONVAI_WRITE, xi-api-key (or Authorization), and EDITOR access on the agent workspace. Connect after the conversation starts.
Enable monitoring on the agent
Set monitoring_enabled: true and configure monitoring_events before the call. See Real-time monitoring.
Session protocol
- Connect with authentication headers.
- Receive
{"type": "connected"}. - Receive a root span batch (
elevenlabs.conversation,elevenlabs.source=monitoring). - Receive cached history (around the last 100 events), then
{"type": "history_complete"}. - Receive live span batches as events occur.
With events_format=json (default), the WebSocket returns raw client events instead of resourceSpans. Control commands match Real-time monitoring.
Trace shape
Structured events map to dedicated attributes (for example elevenlabs.user.text, elevenlabs.agent.text). Unknown events use elevenlabs.event.data with truncated JSON. See Monitoring spans for the attributes of each event.
Do not assume event order matches speaking order. Correlate live spans with post-call data using
the same traceId.
Monitoring span behavior
- One span per message. Each
resourceSpansmessage holds exactly one span. - Turns. The first event opens
elevenlabs.turn.0. Auser_transcriptopens a new turn only when the current turn already has one, so turn 0 holds the agent’s greeting, the user’s first message, and the reply to it. From turn 1, each turn starts with auser_transcript. - Timestamps.
startTimeUnixNanois the time the server sent the event, not the time it was spoken. Replayed history carries the replay time. - Durations. Root, turn, and event spans start and end at the same time, and are not updated when the call ends. Only
elevenlabs.tool.{name}spans have a duration, fromagent_tool_requesttoagent_tool_response. - Reconnects. Each connection creates a new root span ID, restarts turn numbering at 0, and replays cached history with new span IDs. Remove duplicates by content, not by span ID.
- Selected events. The stream carries only the events in the agent’s
monitoring_events. The default isuser_transcript,agent_response, andagent_response_correction. A tool span is sent whenagent_tool_responsearrives; selectagent_tool_requestas well to get its start time.
Example connection
OTLP JSON structure
OpenTelemetry traces from all surfaces share the same OTLP JSON batch layout:
Attribute reference
All attributes use the elevenlabs.* prefix, except service.name.
Value encoding
- Values use the OTLP JSON wrappers
stringValue,intValue,doubleValue, andboolValue.intValueis a number encoded as a string, for example"3". - An attribute with a null or empty value is omitted.
- Attributes marked JSON hold a JSON-encoded string. JSON values and
elevenlabs.reasoning_contentare truncated at 4,096 characters, so a truncated value may not parse. - Every message carries the resource attributes
service.name(elevenlabs-convai),elevenlabs.conversation_id, andelevenlabs.agent_id.
Post-call and GET spans
Root span (elevenlabs.conversation)
Transcript spans (elevenlabs.recv.user_transcript, elevenlabs.recv.agent_response)
Tool spans (elevenlabs.tool.{name})
Monitoring spans
Every event span also carries elevenlabs.event.type, set to the event type (agent_tool on tool spans). To get tool results on the monitoring stream, select agent_tool_response_full_payload and read its elevenlabs.event.data.
Latency metrics
Agent transcript spans in post-call and GET traces carry per-turn latency metrics as elevenlabs.metric.{name}_ms. Values are milliseconds, rounded to 0.1 ms. A metric is omitted from a turn when it was not measured. The monitoring stream does not carry latency metrics.
The same metrics appear in the JSON transcript as conversation_turn_metrics.metrics.{name}.elapsed_time, in seconds.
Limitations
- No direct push to your OTLP gRPC endpoint.
- Payloads are JSON shaped like OTLP export, not raw protobuf on the wire.