Commit 5d8a735
fix(sentry): improve AV error diagnostics and logging (#1146)
* fix(call): stringify console logs for Sentry breadcrumb capture
Sentry's breadcrumb capture doesn't serialize nested objects from
console.log - it just shows [Object] or [Array]. This makes the
diagnostic logging useless for debugging AV issues.
Changed all AV diagnostic console.log calls to use JSON.stringify:
- Desired subscription state logging in Call.jsx
- Status check logging in Call.jsx
- Participant updated logging in eventLogger.js
- AV issue reporting in FixAV.jsx
The pretty-printed JSON (null, 2) ensures:
1. Sentry breadcrumbs capture full data as readable strings
2. Local console output remains human-readable for debugging
Fixes #1142
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* fix(sentry): use normalizeDepth config instead of JSON.stringify
Replace JSON.stringify logging with Sentry normalizeDepth configuration
to properly capture nested objects in breadcrumbs and error reports.
Changes:
- Add normalizeDepth: 6 to Sentry.init() to handle 4-6 level objects
- Revert JSON.stringify calls in Call.jsx, eventLogger.js, and FixAV.jsx
- Add module-level ref for desired subscription state tracking
- Include desiredSubscriptions in FixAV error reports for diagnosing
mismatches between layout-computed and actual subscription states
This approach is cleaner and preserves object structure in Sentry UI,
making it easier to diagnose AV issues.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* fix(sentry): improve media error diagnostics with Daily event and permissions
Capture additional context when camera/mic errors occur to aid diagnosis:
- Extract and log Daily's error type (not-found, permissions, in-use, etc.)
- Preserve the full Daily event payload in Sentry reports
- Query browser Permissions API to capture camera/mic permission state
This helps distinguish between permission denials, hardware issues,
and in-use conflicts when debugging user media errors.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat(sentry): enhance AV error reports with device, network, and summary info
Add comprehensive diagnostic data to help debug audio/video issues:
FixAV.jsx:
- Add track off/blocked reasons to identify why audio/video isn't working
- Add audioDevices info (current mic/camera, available audio outputs)
- Add networkStats from Daily for quality diagnosis
- Add audioContextState to detect browser autoplay blocking
- Add summary field for easy log scanning
UserMediaError.jsx:
- Add summary field with error type, permissions, and device counts
Example summaries:
- "[AV Issue] User reported "cant-hear" with 1 remote participant(s), audioContext=suspended"
- "[Media Error] camera-error (in-use): cam=granted, mic=granted, 1 cam, 2 mic"
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 7c4de55 commit 5d8a735
3 files changed
Lines changed: 93 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
56 | 108 | | |
| 109 | + | |
57 | 110 | | |
58 | 111 | | |
59 | 112 | | |
60 | 113 | | |
61 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
62 | 118 | | |
63 | 119 | | |
64 | 120 | | |
65 | | - | |
| 121 | + | |
66 | 122 | | |
67 | 123 | | |
68 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
72 | 89 | | |
73 | 90 | | |
74 | 91 | | |
| |||
99 | 116 | | |
100 | 117 | | |
101 | 118 | | |
102 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
103 | 130 | | |
104 | 131 | | |
105 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
| 259 | + | |
| 260 | + | |
255 | 261 | | |
256 | 262 | | |
257 | 263 | | |
| |||
0 commit comments