user_speaking span sometimes has enormous duration_ms
In opentelemetry, the user_speaking span sometimes has an excessive length, e.g. 18446744073700.02 ms
This skews the trace when looked at in, e.g., Honeycomb
Probably related to this line? https://github.com/livekit/agents/blob/f2fb5705c865ee7f220f60b5baeaf4c716db4cf6/livekit-agents/livekit/agents/voice/agent_session.py#L1060
@pesterhazy I made a PR, let me know if that solves the issue!
@pesterhazy can you share the start and end time of the user speaking span?
Hey @longcw and @tinalenguyen I am from Paulus team and sharing more context:
The end_time is earlier:
lk.start_time: 1757614656.088785
lk.end_time: 1757614655.7160554
also take a look here on the distribution of user_speaking durations
Also will let you know if it worked out after we update :)
so the actual problem is the end_time < start_time, will take a look. cc @tinalenguyen
@longcw @tinalenguyen this issue returned when we bumped from 1.3.9 to 1.3.12