📈(frontend) snapshot media devices on the happy path

Also snapshot the state of media devices when the user successfully
joins a meeting, not only when something goes wrong. This gives us
the baseline needed to compute meaningful ratios — for example, the
share of users who join a meeting without granting permissions, or
without a microphone or camera available.

Without a happy-path measurement, the current error-only data has no
denominator to compare against.
This commit is contained in:
lebaudantoine
2026-08-10 19:23:48 +02:00
committed by aleb_the_flash
parent ab40ec365d
commit c838229ec9
4 changed files with 8 additions and 9 deletions
@@ -135,7 +135,9 @@ export const captureMediaEvent = async (
| 'media-device-topology'
| 'media-device-success'
| 'device-not-found'
| 'permissions-denied',
| 'permissions-denied'
| 'visit-room'
| 'connection-event',
props: Record<string, unknown>
) => {
captureEvent(event, { ...props, ...(await deviceSnapshot()) })