@sentry/browser 11.0.0-beta.2 → 11.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/npm/cjs/dev/index.js +1 -0
- package/build/npm/cjs/dev/index.js.map +1 -1
- package/build/npm/cjs/dev/integrations/breadcrumbs.js +0 -32
- package/build/npm/cjs/dev/integrations/breadcrumbs.js.map +1 -1
- package/build/npm/cjs/dev/integrations/contextlines.js +1 -1
- package/build/npm/cjs/dev/integrations/contextlines.js.map +1 -1
- package/build/npm/cjs/dev/integrations/httpcontext.js +2 -1
- package/build/npm/cjs/dev/integrations/httpcontext.js.map +1 -1
- package/build/npm/cjs/dev/integrations/webVitals.js +15 -4
- package/build/npm/cjs/dev/integrations/webVitals.js.map +1 -1
- package/build/npm/cjs/dev/sdk.js +1 -0
- package/build/npm/cjs/dev/sdk.js.map +1 -1
- package/build/npm/cjs/dev/tracing/browserTracingIntegration.js +51 -7
- package/build/npm/cjs/dev/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/cjs/dev/tracing/linkedTraces.js.map +1 -1
- package/build/npm/cjs/prod/index.js +1 -0
- package/build/npm/cjs/prod/index.js.map +1 -1
- package/build/npm/cjs/prod/integrations/breadcrumbs.js +0 -32
- package/build/npm/cjs/prod/integrations/breadcrumbs.js.map +1 -1
- package/build/npm/cjs/prod/integrations/contextlines.js +1 -1
- package/build/npm/cjs/prod/integrations/contextlines.js.map +1 -1
- package/build/npm/cjs/prod/integrations/httpcontext.js +2 -1
- package/build/npm/cjs/prod/integrations/httpcontext.js.map +1 -1
- package/build/npm/cjs/prod/integrations/webVitals.js +15 -4
- package/build/npm/cjs/prod/integrations/webVitals.js.map +1 -1
- package/build/npm/cjs/prod/sdk.js +1 -0
- package/build/npm/cjs/prod/sdk.js.map +1 -1
- package/build/npm/cjs/prod/tracing/browserTracingIntegration.js +51 -7
- package/build/npm/cjs/prod/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/cjs/prod/tracing/linkedTraces.js.map +1 -1
- package/build/npm/esm/dev/index.js +1 -1
- package/build/npm/esm/dev/integrations/breadcrumbs.js +1 -33
- package/build/npm/esm/dev/integrations/breadcrumbs.js.map +1 -1
- package/build/npm/esm/dev/integrations/contextlines.js +1 -1
- package/build/npm/esm/dev/integrations/contextlines.js.map +1 -1
- package/build/npm/esm/dev/integrations/httpcontext.js +2 -1
- package/build/npm/esm/dev/integrations/httpcontext.js.map +1 -1
- package/build/npm/esm/dev/integrations/webVitals.js +16 -5
- package/build/npm/esm/dev/integrations/webVitals.js.map +1 -1
- package/build/npm/esm/dev/package.json +1 -1
- package/build/npm/esm/dev/sdk.js +2 -1
- package/build/npm/esm/dev/sdk.js.map +1 -1
- package/build/npm/esm/dev/tracing/browserTracingIntegration.js +53 -9
- package/build/npm/esm/dev/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/esm/dev/tracing/linkedTraces.js.map +1 -1
- package/build/npm/esm/prod/index.js +1 -1
- package/build/npm/esm/prod/integrations/breadcrumbs.js +1 -33
- package/build/npm/esm/prod/integrations/breadcrumbs.js.map +1 -1
- package/build/npm/esm/prod/integrations/contextlines.js +1 -1
- package/build/npm/esm/prod/integrations/contextlines.js.map +1 -1
- package/build/npm/esm/prod/integrations/httpcontext.js +2 -1
- package/build/npm/esm/prod/integrations/httpcontext.js.map +1 -1
- package/build/npm/esm/prod/integrations/webVitals.js +16 -5
- package/build/npm/esm/prod/integrations/webVitals.js.map +1 -1
- package/build/npm/esm/prod/package.json +1 -1
- package/build/npm/esm/prod/sdk.js +2 -1
- package/build/npm/esm/prod/sdk.js.map +1 -1
- package/build/npm/esm/prod/tracing/browserTracingIntegration.js +53 -9
- package/build/npm/esm/prod/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/esm/prod/tracing/linkedTraces.js.map +1 -1
- package/build/npm/types/exports.d.ts +1 -1
- package/build/npm/types/exports.d.ts.map +1 -1
- package/build/npm/types/integrations/breadcrumbs.d.ts +0 -1
- package/build/npm/types/integrations/breadcrumbs.d.ts.map +1 -1
- package/build/npm/types/integrations/contextlines.d.ts +1 -1
- package/build/npm/types/integrations/contextlines.d.ts.map +1 -1
- package/build/npm/types/integrations/httpcontext.d.ts.map +1 -1
- package/build/npm/types/integrations/webVitals.d.ts +35 -0
- package/build/npm/types/integrations/webVitals.d.ts.map +1 -1
- package/build/npm/types/sdk.d.ts.map +1 -1
- package/build/npm/types/tracing/browserTracingIntegration.d.ts +20 -0
- package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -1
- package/build/npm/types/tracing/linkedTraces.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Client, RequestHookInfo, ResponseHookInfo, Span, StartSpanOptions } from '@sentry/core';
|
|
2
|
+
import type { WebVitalsOptions } from '../integrations/webVitals';
|
|
2
3
|
export declare const BROWSER_TRACING_INTEGRATION_ID = "BrowserTracing";
|
|
3
4
|
/** Options for Browser Tracing integration */
|
|
4
5
|
export interface BrowserTracingOptions {
|
|
@@ -35,6 +36,18 @@ export interface BrowserTracingOptions {
|
|
|
35
36
|
* Default: true
|
|
36
37
|
*/
|
|
37
38
|
instrumentNavigation: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* If a navigation span should be created when the page is restored from the back/forward cache.
|
|
41
|
+
*
|
|
42
|
+
* This is deliberately independent of {@link BrowserTracingOptions.instrumentNavigation}: a restore
|
|
43
|
+
* is not a history change, and the framework integrations that own their own navigation spans turn
|
|
44
|
+
* that option off without ever handling a restore. The point of this span is trace hygiene, keeping
|
|
45
|
+
* everything after the restore off the trace the page had before it was frozen, so it is worth
|
|
46
|
+
* having even where history instrumentation is not.
|
|
47
|
+
*
|
|
48
|
+
* Default: true
|
|
49
|
+
*/
|
|
50
|
+
instrumentBfcacheRestore: boolean;
|
|
38
51
|
/**
|
|
39
52
|
* Flag spans where tabs moved to background with "cancelled". Browser background tab timing is
|
|
40
53
|
* not suited towards doing precise measurements of operations. By default, we recommend that this option
|
|
@@ -59,8 +72,15 @@ export interface BrowserTracingOptions {
|
|
|
59
72
|
* If true, Sentry will capture first input delay and add it to the corresponding transaction.
|
|
60
73
|
*
|
|
61
74
|
* Default: true
|
|
75
|
+
*
|
|
76
|
+
* @deprecated Use {@link BrowserTracingOptions.webVitals} instead: `webVitals: { ignore: ['inp'] }`.
|
|
62
77
|
*/
|
|
63
78
|
enableInp: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Options for the `webVitalsIntegration` that is auto-registered when none is present.
|
|
81
|
+
* Ignored if you register `webVitalsIntegration` yourself.
|
|
82
|
+
*/
|
|
83
|
+
webVitals?: WebVitalsOptions;
|
|
64
84
|
/**
|
|
65
85
|
* @deprecated This option is no longer used. Element timing is now tracked via the standalone
|
|
66
86
|
* `elementTimingIntegration`. Add it to your `integrations` array to collect element timing metrics.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserTracingIntegration.d.ts","sourceRoot":"","sources":["../../../../src/tracing/browserTracingIntegration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAiB,eAAe,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"browserTracingIntegration.d.ts","sourceRoot":"","sources":["../../../../src/tracing/browserTracingIntegration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAiB,eAAe,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAuCrH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAelE,eAAO,MAAM,8BAA8B,mBAAmB,CAAC;AAE/D,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG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AAW,CAAC;IACnD,uBAAuB,EAAE,OAAO,CAAC;CAClC,GACA,IAAI,CAoEN;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,EAChD,IAAI,EAAE,IAAI,EACV,qBAAqB,EAAE,kBAAkB,GACxC,iBAAiB,CAkEnB;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAO7F;AAED;;GAEG;AACH,wBAAgB,kCAAkC,IAAI,iBAAiB,GAAG,SAAS,CAQlF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAEhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/browser",
|
|
3
|
-
"version": "11.0.0-
|
|
3
|
+
"version": "11.0.0-rc.0",
|
|
4
4
|
"description": "Official Sentry SDK for browsers",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@sentry/browser-utils": "11.0.0-
|
|
42
|
-
"@sentry/conventions": "^0.
|
|
43
|
-
"@sentry/feedback": "11.0.0-
|
|
44
|
-
"@sentry/replay": "11.0.0-
|
|
45
|
-
"@sentry/replay-canvas": "11.0.0-
|
|
46
|
-
"@sentry/core": "11.0.0-
|
|
41
|
+
"@sentry/browser-utils": "11.0.0-rc.0",
|
|
42
|
+
"@sentry/conventions": "^0.23.0",
|
|
43
|
+
"@sentry/feedback": "11.0.0-rc.0",
|
|
44
|
+
"@sentry/replay": "11.0.0-rc.0",
|
|
45
|
+
"@sentry/replay-canvas": "11.0.0-rc.0",
|
|
46
|
+
"@sentry/core": "11.0.0-rc.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@sentry-internal/integration-shims": "11.0.0-
|
|
49
|
+
"@sentry-internal/integration-shims": "11.0.0-rc.0",
|
|
50
50
|
"fake-indexeddb": "^6.2.5"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|