6-02-19 12:14:03,987 [INFO] - __mp_main__: trace_i...
# ask-ai
r
2026-02-19 121403,987 [INFO] - __mp_main__: trace_id=None, file=agent.py:1216, Conversation item added: type='conversation_item_added' item=ChatMessage(id='item_6dc0a47340ca', type='message', role='assistant', content=['Main samajh gayi ki aap A D L D ke baare mein jaanna chahti hain. Is vishay par vistaar se jaankari ke liye, kya aap apni query ko chat mein dobara type kar sakti hain?'], interrupted=False, transcript_confidence=None, extra={}, metrics={'started_speaking_at': 1771483435.3898118, 'stopped_speaking_at': 1771483443.986468, 'llm_node_ttft': 0.5802328330009914, 'tts_node_ttfb': 0.9991706840010011, 'e2e_latency': 14.271479606628418}, created_at=1771483433.8209448, hash=None) created_at=1771483443.986672 what is e2e_latency here
t
Thanks for reaching out, Gaurav. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding to your question about what
e2e_latency
means in that log line. In this log,
e2e_latency
stands for “end-to-end latency.” It measures the total elapsed time for the voice-agent round trip: from when the user finished speaking (
stopped_speaking_at
) to when the agent’s response was produced/delivered. In your log the value is 14.271479606628418 seconds, so the full round trip took about 14.27 seconds. What the metric normally includes • End-of-utterance detection and any queuing delay after the user stops speaking. • Speech-to-text (STT) processing time (if applicable). • Language model (LLM) processing and response generation time. • Text-to-speech (TTS) generation and any streaming/playback time. • Network or system delays between components. Why this matters • Shorter e2e latency makes conversations feel natural. Typical goals are in the 2–3 second range for interactive voice agents; 14+ seconds indicates something is slowing the pipeline (long generation, slow TTS, network delays, or extra processing). Helpful next steps to diagnose the cause • Check the individual timing fields you already have: ◦
llm_node_ttft
(Time To First Token from the LLM) ◦
tts_node_ttfb
(Time To First Byte from the TTS engine) Compare those to
e2e_latency
to see which stage is contributing most time. • Look for additional timestamps such as when the request was sent to the LLM, when the LLM finished, and when TTS finished/started playback. • If you’d like, share the other related timestamps or the full metric block and I can help pinpoint which stage is the largest contributor. Sources: Streamline troubleshooting with Agent Observability | examples/frontdesk | livekit/livekit_composite | DeepWiki