client-sdk-js icon indicating copy to clipboard operation
client-sdk-js copied to clipboard

Add client connection time metrics

Open lukasIO opened this issue 1 year ago • 2 comments

starting with a minimal set of timings and errors. This is not considered completed, would value some feedback WRT what else we'll want to send.

lukasIO avatar Apr 09 '24 11:04 lukasIO

⚠️ No Changeset found

Latest commit: a43a19fb4ebea17903cdbfd1af0e60402c9805bd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Apr 09 '24 11:04 changeset-bot[bot]

To understand this right, the connection times/durations will be sent through the websocket connection to the SFU. The SFU probably uses it to build the dashboard? Is there a way to locally emit this data with js events from the livekit client? So that one could use different ways to analyze/visualize this data? (for example posthog)

publisher?: number;, subscriber?: number; refers to the sending and receiving peer connection durations right?

toger5 avatar Apr 16 '24 11:04 toger5

This work seems super interesting to me, is it stale @lukasIO ? (I am also using Posthog in my product)

lebaudantoine avatar Dec 07 '24 16:12 lebaudantoine

@lebaudantoine sorry for the late reply, we've iterated this effort quite a bit, we're still working on a solution that does similar things, but it might look a bit different to this early proposal

lukasIO avatar Jun 16 '25 08:06 lukasIO