agents icon indicating copy to clipboard operation
agents copied to clipboard

Multiple traces created for a single LiveKit call instead of one unified trace

Open gulamsarvar-bluebash opened this issue 3 months ago • 4 comments

Hi team,

I’m integrating Langfuse with LiveKit, and I’m running into an issue with trace management.

Currently, for a single call/session in LiveKit, Langfuse is automatically creating multiple traces instead of keeping everything under one unified trace. My goal is to have one trace per call/session, with child spans inside that trace for different steps (LLM calls, tool usage, events, etc.).

Even though I’m explicitly setting up a root span and trace in my custom method

Image

Langfuse still creates separate traces for events happening during the same call.

Questions: How can I prevent Langfuse from creating multiple traces automatically in LiveKit integration? Is there a way to disable auto-trace creation and use only my custom trace management logic?

gulamsarvar-bluebash avatar Sep 02 '25 05:09 gulamsarvar-bluebash