Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/pages/docs/integrations/traceai/livekit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions src/pages/docs/tracing/auto/livekit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading