monitoring.traces delivers performance spans from an agent’s recorded turns to the project’s Monitoring webhook. Each message contains OpenTelemetry Protocol (OTLP) JSON inside the Voiceflow envelope. This event describes turn execution; it does not establish that a session ended or its evaluations finished.
Subscribe to traces
Use the project’s Settings → Monitoring → Monitoring webhook. Configure your receiver URL and signing secret through the webhook setup, then select Listen for specific events → Health and performance → Traces. Wait for Saved.
Listen for all events excludes monitoring.traces. Before monitoring is enabled for a project, the page is named Settings → Webhooks, and Traces is absent. Selecting lifecycle or evaluation events does not subscribe the endpoint to traces.
Envelope and OTLP structure
Within each data.resourceSpans[] group:
OTLP values keep their typed wrappers: stringValue, boolValue or intValue. Integer values and nanosecond timestamps are decimal strings, not JSON numbers. Trace IDs are 32 hexadecimal characters; span IDs are 16 hexadecimal characters. See the OTLP specification for the transport format.
Spans and status
Model and tool spans use parentSpanId to reference the turn span. traceId groups spans for one turn. Use the gen_ai.conversation.id span attribute to correlate turns from the same transcript; do not treat traceId as a conversation ID.
Every emitted span has startTimeUnixNano, endTimeUnixNano, attributes, events and status. status.code: 0 means unset; 2 means error. A degraded turn can still have code 0, so inspect voiceflow.turn.degraded separately. A model fallback can add the span event voiceflow.llm.fallback.
Attributes
Absent source values are omitted rather than replaced with empty strings.
The mapper exports selected performance metadata rather than prompts, customer messages, tool arguments or response bodies. Project, Environment and tool names can appear in attributes; account for those names when choosing who can read your monitoring destination.
Example turn payload
This illustrative event contains one successful text turn lasting 1,500 milliseconds, with a 400-millisecond time to first response. It contains no model-call or tool-call spans. IDs and names are fictional.
Receive and forward traces
Verify the Voiceflow request
Use the endpoint’s signing secret to verify the original body, then parse JSON and route on type. Authenticate the webhook before trusting its project or OTLP attributes.
Forward the OTLP data
Send the event’s data object as JSON to your configured OTLP/HTTP trace receiver, for example https://collector.example.com/v1/traces. Replace that illustrative URL with your destination’s configured trace-ingestion URL and use its authentication and TLS requirements. The complete Voiceflow envelope is not an OTLP request; an OTLP receiver should not receive its outer type, time or resource fields.
This fragment shows payload selection only. Your receiver must supply signature verification, destination authentication and durable processing appropriate to its webhook responses.
Check correlation and missing data
Run a conversation in the subscribed project, then look for service.name: voiceflow, the matching voiceflow.project.id and gen_ai.conversation.id in your destination. Inspect each turn’s spans and errors. This event is emitted from recorded trace messages, not only when a session ends.
If nothing arrives, confirm the event is explicitly selected, the receiver verifies and accepts the webhook, and the destination accepts the inner OTLP JSON. A message with no supported outcome metadata produces no spans. Older recorded outcomes without a turn ID or timestamp are skipped.
Delivery boundaries
Telemetry mapping and submission are best effort. A failed analytics lookup, mapping or webhook submission is not retried by that analytics consumer; webhook delivery is a subsequent stage. Do not use the absence of a trace event as evidence that no turn ran, or this feed as a complete transcript archive.
Do not assume arrival order. Preserve deterministic traceId/spanId values when forwarding, and make your receiver tolerant of repeated deliveries. Use session events for conversation boundaries and evaluation events for scoring completion.