Commit 5d368f6
feat(browser)!: Extract web vitals into dedicated
Moves LCP, CLS and INP tracking out of `browserTracingIntegration` into a new
standalone `webVitalsIntegration`. `browserTracingIntegration` auto-registers
it (in `afterAllSetup`) when the user hasn't supplied one, so default behavior
is preserved.
Also removes the v1 standalone span envelope path entirely:
- `trackLcpAsStandaloneSpan`, `trackClsAsStandaloneSpan`, `startTrackingINP`
and `_onInp` are gone from `@sentry-internal/browser-utils`
- `startStandaloneWebVitalSpan` is deleted (no remaining callers)
- `SentrySpan#_isStandaloneSpan`, `SentrySpan#isStandaloneSpan()` and the
standalone send branch in `_onSpanEnded` are removed
- `createSpanEnvelope` and the local `sendSpanEnvelope` helper are deleted
- `SpanContext.isStandalone` and `StartSpanOptions.experimental.standalone`
are removed from the public types
- `enableInp` option on `browserTracingIntegration` is removed (migrate to
`webVitalsIntegration({ disable: ['inp'] })`)
- `_experiments.enableStandaloneClsSpans` and
`_experiments.enableStandaloneLcpSpans` are removed
Streamed spans are unaffected: they use `createStreamedSpanEnvelope`,
`SpanBuffer`, and the `afterSegmentSpanEnd` hook, all of which are intact.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>webVitalsIntegration
1 parent 9956476 commit 5d368f6
44 files changed
Lines changed: 135 additions & 2656 deletions
File tree
- dev-packages/browser-integration-tests/suites/tracing
- browserTracingIntegration
- linked-traces-streamed/consistent-sampling/tracesSampler-precedence
- linked-traces/consistent-sampling/tracesSampler-precedence
- metrics
- web-vitals-cls-standalone-spans
- web-vitals-inp-late
- web-vitals-inp-parametrized-late
- web-vitals-inp-parametrized
- web-vitals-inp
- web-vitals-lcp-standalone-spans
- assets
- packages
- browser-utils
- src
- metrics
- test/metrics
- browser/src
- integrations
- tracing
- core
- src
- tracing
- types-hoist
- test/lib
- tracing
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 0 additions & 10 deletions
This file was deleted.
0 commit comments