Commit 7c4de55
fix(sentry): use normalizeDepth config for nested object capture (#1143)
* 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>
* update test cases
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 98d5110 commit 7c4de55
5 files changed
Lines changed: 41 additions & 3 deletions
File tree
- client/src
- call
- cypress/fixtures/mockCDN
- demo/annotated_demo
- test/subscriptionHell
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
17 | 34 | | |
18 | 35 | | |
19 | 36 | | |
| |||
312 | 329 | | |
313 | 330 | | |
314 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
315 | 335 | | |
316 | 336 | | |
317 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments