Commit 22f6a55
fix(browser): Skip redundant CLS/LCP handlers when span streaming is enabled
When span streaming handles CLS/LCP, `startTrackingWebVitals` no longer
registers throwaway `_trackCLS()`/`_trackLCP()` handlers. Instead of
adding a separate skip flag, the existing `recordClsStandaloneSpans` and
`recordLcpStandaloneSpans` options now accept `undefined` to mean "skip
entirely" — three states via two flags instead of three flags.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 627d3ba commit 22f6a55
File tree
2 files changed
+29
-6
lines changed- packages
- browser-utils/src/metrics
- browser/src/tracing
2 files changed
+29
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
80 | 90 | | |
81 | 91 | | |
82 | 92 | | |
| |||
97 | 107 | | |
98 | 108 | | |
99 | 109 | | |
100 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
101 | 125 | | |
102 | | - | |
103 | 126 | | |
104 | 127 | | |
105 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | | - | |
| 497 | + | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
0 commit comments