Configure tracing
Add atracing section to integrations.yml.
Choose Langfuse, an OTLP collector, or Jaeger:
integrations.yml
integrations.yml
integrations.yml
tracing:. Full field
reference: integrations.yml → Tracing.
Voice traces
When voice tracing is enabled, each call produces a trace that follows provider connections, input handling, engine turns, speech synthesis, audio playback, and call recording when recording is enabled. 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)
├── 💾 store call recording (when recording is enabled)
├── 🔌 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. Call-recording storage locators
are identifiers, not content, and are emitted without this gate.
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
voice.barge_in.audio_was_playing is true when agent audio was already audible
when the transcript arrived. voice.barge_in.audio_was_buffered is true when
audio was queued but not yet audible. Both can be true at once.
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.
voice.tts.audio_source is cached, generated, or fallback.
After a TTS failure, fallback audio can still produce completion and audio-total
signals. The span remains
ERROR.play audio span
Attributes
Events
store call recording span
Opens when Rasa finalizes a call recording: encode, upload, and report the
outcome. It is created only when recording is enabled for the call.
Attributes
Storage locators (
bucket, key, uri) identify where the recording file
lives. They are not the audio itself and are not gated by content capture.
A file:// URI can include a local filesystem path.
Each span records exactly one of these 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: