From 00e3ee4fec1952d3d8cd71054022dafddf7b10b3 Mon Sep 17 00:00:00 2001 From: Abhijai Srivastava Date: Wed, 12 Aug 2026 16:01:21 +0530 Subject: [PATCH] docs(livekit): set the session root span kind to conversation The voice call list selects on observation_type = 'conversation'. Both LiveKit pages instructed fi_span_kind="agent" on the root, so a trace built by following them never reached the voice surface. --- src/pages/docs/integrations/traceai/livekit.mdx | 6 ++++-- src/pages/docs/tracing/auto/livekit.mdx | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/docs/integrations/traceai/livekit.mdx b/src/pages/docs/integrations/traceai/livekit.mdx index a0ca25e6..9ed459fd 100644 --- a/src/pages/docs/integrations/traceai/livekit.mdx +++ b/src/pages/docs/integrations/traceai/livekit.mdx @@ -112,7 +112,8 @@ async def entrypoint(ctx: JobContext): # Use context manager for parent span instead of decorator # This ensures the span starts when this process is actually running - with tracer.start_as_current_span("LiveKit Agent Session", fi_span_kind="agent") as parent_span: + # conversation is what the voice call list filters on; any other kind hides the call + with tracer.start_as_current_span("LiveKit Agent Session", fi_span_kind="conversation") as parent_span: parent_span.set_input(f"Room: {ctx.room.name}") # Modern AgentSession setup @@ -212,7 +213,8 @@ async def entrypoint(ctx: JobContext): # Use context manager for parent span instead of decorator # This ensures the span starts when this process is actually running - with tracer.start_as_current_span("LiveKit Agent Session", fi_span_kind="agent") as parent_span: + # conversation is what the voice call list filters on; any other kind hides the call + with tracer.start_as_current_span("LiveKit Agent Session", fi_span_kind="conversation") as parent_span: parent_span.set_input(f"Room: {ctx.room.name}") # Modern AgentSession setup diff --git a/src/pages/docs/tracing/auto/livekit.mdx b/src/pages/docs/tracing/auto/livekit.mdx index 38bc2f66..bb655de4 100644 --- a/src/pages/docs/tracing/auto/livekit.mdx +++ b/src/pages/docs/tracing/auto/livekit.mdx @@ -112,7 +112,8 @@ async def entrypoint(ctx: JobContext): # Use context manager for parent span instead of decorator # This ensures the span starts when this process is actually running - with tracer.start_as_current_span("LiveKit Agent Session", fi_span_kind="agent") as parent_span: + # conversation is what the voice call list filters on; any other kind hides the call + with tracer.start_as_current_span("LiveKit Agent Session", fi_span_kind="conversation") as parent_span: parent_span.set_input(f"Room: {ctx.room.name}") # Modern AgentSession setup @@ -212,7 +213,8 @@ async def entrypoint(ctx: JobContext): # Use context manager for parent span instead of decorator # This ensures the span starts when this process is actually running - with tracer.start_as_current_span("LiveKit Agent Session", fi_span_kind="agent") as parent_span: + # conversation is what the voice call list filters on; any other kind hides the call + with tracer.start_as_current_span("LiveKit Agent Session", fi_span_kind="conversation") as parent_span: parent_span.set_input(f"Room: {ctx.room.name}") # Modern AgentSession setup