#7307·agents

Otel span containing incorrectly long duration

Author: 3DRXCreated Sep 16, 2026Updated Sep 18, 2026
Labelsbug

Bug Description

This span is generated by livekit-agents 1.8.2, by a selfhosted agent worker that connects to livekit cloud. This span have incorrect duration while other spans from that agent session is normal.

{
  "_timestamp": "Sep 16, 2026 19:23:16.406 +08:00",
  "duration": "18446744073500970us",
  "end_time": "Sep 16, 2026 19:23:16.198 +08:00",
  "flags": 1,
  "job_id": "AJ_KnDoSH9xs8hQ",
  "links": "[]",
  "lk_agent_name": "spatius-playground-agent",
  "lk_participant_id": "PA_N9PSVUwi6KMV",
  "lk_participant_kind": "PARTICIPANT_KIND_STANDARD",
  "lk_pii_participant_identity": "studio-user-3f8fc9c9-24cf-460d-9516-648bdf9d5f3d",
  "operation_name": "user_speaking",
  "reference_parent_span_id": "5883916d734c8d47",
  "reference_parent_trace_id": "7593fa379189ad1d966346b136eb479c",
  "reference_ref_type": "ChildOf",
  "room_id": "RM_MnJ8Ffz2Xgx8",
  "service_name": "playground-agent",
  "service_service_instance_id": "18a3d14a-55d5-4676-bf95-f8fb4c906c85",
  "service_telemetry_sdk_language": "python",
  "service_telemetry_sdk_name": "opentelemetry",
  "service_telemetry_sdk_version": "1.44.0",
  "span_id": "3e89f4a3d2d34805",
  "span_kind": "Internal",
  "span_status": "UNSET",
  "start_time": "Sep 16, 2026 19:23:16.406 +08:00",
  "status_code": 0,
  "status_message": "",
  "trace_id": "7593fa379189ad1d966346b136eb479c"
}

Expected Behavior

Correct duration for this span.

Reproduction Steps

bash
Not sure, only happened once in our case.

Operating System

Linux

Models Used

Deepgram Flux + Gemini 3.5 Flash + Cartesia Sonic 3.6

Package Versions

bash
livekit-agents==1.8.2

Session/Room/Call IDs

No response

Proposed Solution

python

Additional Context

No response

Screenshots and Recordings

No response