client-sdk-js
client-sdk-js copied to clipboard
Add client connection time metrics
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.
⚠️ 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
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?
This work seems super interesting to me, is it stale @lukasIO ? (I am also using Posthog in my product)
@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