♻️(frontend) prefer captureMediaEvent over reportError when no-op

Switch calls to `reportError` over to `captureMediaEvent` when the
underlying situation is not an engineering issue to investigate but
rather a media-related event worth tracking (e.g. no camera or
microphone available on the user's device).

`reportError` stays reserved for actual errors that warrant an
engineer's attention.
This commit is contained in:
lebaudantoine
2026-08-10 19:10:26 +02:00
committed by aleb_the_flash
parent 199c0297d4
commit ab40ec365d
3 changed files with 14 additions and 3 deletions
@@ -134,7 +134,8 @@ export const captureMediaEvent = async (
| 'media-acquisition'
| 'media-device-topology'
| 'media-device-success'
| 'device-not-found',
| 'device-not-found'
| 'permissions-denied',
props: Record<string, unknown>
) => {
captureEvent(event, { ...props, ...(await deviceSnapshot()) })