Configure tracing
Create anendpoints.yml file in your project and add a tracing section:
Voice traces
When voice tracing is enabled, each call produces a trace that follows provider connections, input handling, engine turns, speech synthesis, and audio playback. This section catalogs those spans, their attributes, and the events recorded on each span.Typical trace
The tree shows common parent-child relationships, not execution order.├── 🔌 connect asr
├── 🔌 connect tts
├── 📝 transcribe audio
├── ⚡ handle barge-in
├── 🔢 handle dtmf
├── ⏱️ handle silence
├── 🔄 handle turn
│ ├── 🗣️ synthesize speech
│ └── 🔊 play audio
├── ⚠️ process channel message (failures only)
├── ⚠️ compose event (failures only)
├── 🔌 disconnect asr
└── 🔌 disconnect tts
Content capture
Content capture is off by default. Set theRASA_VOICE_CAPTURE_CONTENT
environment variable to true, 1, or yes (case-insensitive, surrounding
whitespace ignored) to include supported transcript and generated-text
attributes in traces.
Content capture never includes raw audio, partial transcripts, or DTMF digits.
Audio is reported only as byte and chunk totals.
Attributes shared by voice spans
The following correlation fields are added to every span created inside an active voice call. They are not included when the span does not belong to a voice call.
Every span that Rasa marks
ERROR also has:
exception events can include messages and stack traces.
RASA_VOICE_CAPTURE_CONTENT does not redact them.voice call span
Attributes
Events
voice.call_ended ends active processing, not the voice call span.
Disconnect of ASR and TTS and teardown can follow.Provider connection spans
The four connection spans areCLIENT spans. Each span covers one provider
connection or disconnection attempt. A failed attempt adds error.type,
records a standard exception event, and marks the span ERROR.
connect asr span
Opens for every ASR connection attempt, including reconnects, and ends when the
attempt succeeds or fails.
Attributes
Events
No custom span events. A standard
exception event is recorded on failure.
disconnect asr span
Opens for every ASR disconnection attempt and ends when the attempt succeeds or
fails. It never carries voice.connect.reconnect.
Attributes
Events
No custom span events. A standard
exception event is recorded on failure.
connect tts span
Opens for every TTS connection attempt, including reconnects, and ends when the
attempt succeeds or fails.
Attributes
Events
No custom span events. A standard
exception event is recorded on failure.
disconnect tts span
Opens for every TTS disconnection attempt and ends when the attempt succeeds or
fails. It never carries voice.connect.reconnect.
Attributes
Events
No custom span events. A standard
exception event is recorded on failure.
transcribe audio span
Attributes
Events
Input-decision spans
Input-decision spans show how Rasa handles input received during a call before passing it to the agent. They cover spoken interruptions, keypad input, and silence timeouts. They record whether the input was accepted, ignored, or buffered, as well as any failures.handle barge-in span
Attributes
None beyond the shared correlation and optional failure attributes.
Events
handle dtmf span
Attributes
Events
handle silence span
Attributes
None beyond the shared correlation and optional failure attributes.
Events
handle turn span
Attributes
Events
synthesize speech span
Attributes
Audio totals are added when the span ends and can be zero.
After a TTS failure, fallback audio can still produce completion and audio-total
signals. The span remains
ERROR.play audio span
Attributes
Events
Failure-only spans
These spans appear only when an operation fails. They are backdated to the start of the failed operation and end when the failure is recorded.process channel message span
Covers a failed channel-message processing operation. It has only the shared
correlation and failure attributes.
Attributes
Events
No custom span events. A standard
exception event is recorded.
compose event span
Appears when Rasa fails while interpreting a voice-channel input, such as caller
speech, keypad input, or a silence timeout, and preparing it for the agent.
Attributes
Events
No custom span events. A standard
exception event is recorded.
How to read attribute tables
TheAvailability column describes when an attribute is eligible or written
relative to an emitted span.
The Data classification column uses these privacy labels: