Commit 48171a3
fix(browser): Guard auto-register call and update web-vital test assertions
- Guard `client.getIntegrationByName?.()` / `client.addIntegration?.()` in
`browserTracingIntegration.afterAllSetup` so stripped-down test/mock clients
don't crash on auto-registering `webVitalsIntegration`.
- Drop `eventData.measurements.{lcp,cls,inp,ttfb,fp,fcp}` assertions from
browser integration tests; web vitals are no longer recorded as transaction
measurements. Web-vital-specific tests now assert the new
`browser.web_vital.X.value` attribute on the corresponding span (the LCP/CLS
child span, or the pageload span for ttfb/fp/fcp).
- Delete legacy INP test suites (`web-vitals-inp`, `web-vitals-inp-late`,
`web-vitals-inp-navigate`, `web-vitals-inp-parametrized`,
`web-vitals-inp-parametrized-late`). They tested the v1 standalone INP
envelope path which is gone; `web-vitals-inp-streamed-spans` covers the
supported flow.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 5d368f6 commit 48171a3
27 files changed
Lines changed: 51 additions & 950 deletions
File tree
- dev-packages/browser-integration-tests/suites/tracing/metrics
- handlers-lcp
- web-vitals-cls
- web-vitals-fp-fcp
- web-vitals-inp-late
- web-vitals-inp-parametrized-late
- web-vitals-inp-parametrized
- web-vitals-inp
- web-vitals-lcp
- web-vitals-ttfb
- web-vitals
- packages/browser/src/tracing
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | | - | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
Lines changed: 21 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
19 | | - | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | | - | |
23 | | - | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | | - | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | | - | |
33 | | - | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | | - | |
37 | | - | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | | - | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
46 | | - | |
47 | | - | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 89 deletions
This file was deleted.
Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 0 additions & 16 deletions
This file was deleted.
0 commit comments