@sentry/replay 7.45.0 → 7.47.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/README.md +16 -4
- package/cjs/index.js +443 -211
- package/cjs/index.js.map +1 -1
- package/esm/index.js +444 -212
- package/esm/index.js.map +1 -1
- package/package.json +5 -5
- package/types/constants.d.ts +1 -0
- package/types/constants.d.ts.map +1 -1
- package/types/coreHandlers/handleFetch.d.ts +2 -2
- package/types/coreHandlers/handleFetch.d.ts.map +1 -1
- package/types/coreHandlers/handleHistory.d.ts.map +1 -1
- package/types/coreHandlers/handleNetworkBreadcrumbs.d.ts +5 -11
- package/types/coreHandlers/handleNetworkBreadcrumbs.d.ts.map +1 -1
- package/types/coreHandlers/handleXhr.d.ts +2 -2
- package/types/coreHandlers/handleXhr.d.ts.map +1 -1
- package/types/coreHandlers/{addBreadcrumbEvent.d.ts → util/addBreadcrumbEvent.d.ts} +1 -1
- package/types/coreHandlers/util/addBreadcrumbEvent.d.ts.map +1 -0
- package/types/coreHandlers/util/addNetworkBreadcrumb.d.ts +4 -0
- package/types/coreHandlers/util/addNetworkBreadcrumb.d.ts.map +1 -0
- package/types/coreHandlers/util/fetchUtils.d.ts +24 -0
- package/types/coreHandlers/util/fetchUtils.d.ts.map +1 -0
- package/types/coreHandlers/util/networkUtils.d.ts +15 -0
- package/types/coreHandlers/util/networkUtils.d.ts.map +1 -0
- package/types/coreHandlers/util/xhrUtils.d.ts +23 -0
- package/types/coreHandlers/util/xhrUtils.d.ts.map +1 -0
- package/types/replay.d.ts +2 -0
- package/types/replay.d.ts.map +1 -1
- package/types/types.d.ts +126 -5
- package/types/types.d.ts.map +1 -1
- package/types/util/addMemoryEntry.d.ts.map +1 -1
- package/types/util/createPerformanceEntries.d.ts +2 -2
- package/types/util/createPerformanceEntries.d.ts.map +1 -1
- package/types/util/createPerformanceSpans.d.ts +2 -2
- package/types/util/createPerformanceSpans.d.ts.map +1 -1
- package/types/util/sendReplayRequest.d.ts.map +1 -1
- package/types/coreHandlers/addBreadcrumbEvent.d.ts.map +0 -1
- package/types/coreHandlers/addNetworkBreadcrumb.d.ts +0 -4
- package/types/coreHandlers/addNetworkBreadcrumb.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/replay",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.47.0",
|
|
4
4
|
"description": "User replays for Sentry",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"homepage": "https://docs.sentry.io/platforms/javascript/session-replay/",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/core": "^7.17.5",
|
|
21
|
-
"@sentry-internal/replay-worker": "7.
|
|
21
|
+
"@sentry-internal/replay-worker": "7.47.0",
|
|
22
22
|
"@sentry-internal/rrweb": "1.106.0",
|
|
23
23
|
"@sentry-internal/rrweb-snapshot": "1.106.0",
|
|
24
24
|
"jsdom-worker": "^0.2.1",
|
|
25
25
|
"tslib": "^1.9.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@sentry/core": "7.
|
|
29
|
-
"@sentry/types": "7.
|
|
30
|
-
"@sentry/utils": "7.
|
|
28
|
+
"@sentry/core": "7.47.0",
|
|
29
|
+
"@sentry/types": "7.47.0",
|
|
30
|
+
"@sentry/utils": "7.47.0"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=12"
|
package/types/constants.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export declare const DEFAULT_FLUSH_MAX_DELAY = 5500;
|
|
|
11
11
|
export declare const ERROR_CHECKOUT_TIME = 60000;
|
|
12
12
|
export declare const RETRY_BASE_INTERVAL = 5000;
|
|
13
13
|
export declare const RETRY_MAX_COUNT = 3;
|
|
14
|
+
export declare const NETWORK_BODY_MAX_SIZE = 300000;
|
|
14
15
|
//# sourceMappingURL=constants.d.ts.map
|
package/types/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM,iDAA2C,CAAC;AAE/D,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAChD,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAG7D,eAAO,MAAM,qBAAqB,SAAU,CAAC;AAG7C,eAAO,MAAM,gBAAgB,UAAY,CAAC;AAE1C,2BAA2B;AAC3B,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAG7C,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAG7C,eAAO,MAAM,mBAAmB,QAAS,CAAC;AAE1C,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,eAAe,IAAI,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM,iDAA2C,CAAC;AAE/D,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAChD,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAG7D,eAAO,MAAM,qBAAqB,SAAU,CAAC;AAG7C,eAAO,MAAM,gBAAgB,UAAY,CAAC;AAE1C,2BAA2B;AAC3B,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAG7C,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAG7C,eAAO,MAAM,mBAAmB,QAAS,CAAC;AAE1C,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,eAAe,IAAI,CAAC;AAGjC,eAAO,MAAM,qBAAqB,SAAU,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HandlerDataFetch } from '@sentry/types';
|
|
2
|
-
import type { ReplayContainer, ReplayPerformanceEntry } from '../types';
|
|
2
|
+
import type { NetworkRequestData, ReplayContainer, ReplayPerformanceEntry } from '../types';
|
|
3
3
|
/** only exported for tests */
|
|
4
|
-
export declare function handleFetch(handlerData: HandlerDataFetch): null | ReplayPerformanceEntry
|
|
4
|
+
export declare function handleFetch(handlerData: HandlerDataFetch): null | ReplayPerformanceEntry<NetworkRequestData>;
|
|
5
5
|
/**
|
|
6
6
|
* Returns a listener to be added to `addInstrumentationHandler('fetch', listener)`.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleFetch.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleFetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"handleFetch.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleFetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAG5F,8BAA8B;AAC9B,wBAAgB,WAAW,CAAC,WAAW,EAAE,gBAAgB,GAAG,IAAI,GAAG,sBAAsB,CAAC,kBAAkB,CAAC,CAoB5G;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,eAAe,GAAG,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAUxG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHistory.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"handleHistory.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,eAAe,EAA0B,MAAM,UAAU,CAAC;AAGrF,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;AAkBD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,CAAC,WAAW,EAAE,kBAAkB,KAAK,IAAI,CAsB5G"}
|
|
@@ -3,22 +3,16 @@ import type { ReplayContainer } from '../types';
|
|
|
3
3
|
interface ExtendedNetworkBreadcrumbsOptions {
|
|
4
4
|
replay: ReplayContainer;
|
|
5
5
|
textEncoder: TextEncoderInternal;
|
|
6
|
+
captureBodies: boolean;
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
|
-
* This
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* * response_body_size
|
|
13
|
-
*
|
|
14
|
-
* to the breadcrumb data.
|
|
9
|
+
* This method does two things:
|
|
10
|
+
* - It enriches the regular XHR/fetch breadcrumbs with request/response size data
|
|
11
|
+
* - It captures the XHR/fetch breadcrumbs to the replay
|
|
12
|
+
* (enriching it with further data that is _not_ added to the regular breadcrumbs)
|
|
15
13
|
*/
|
|
16
14
|
export declare function handleNetworkBreadcrumbs(replay: ReplayContainer): void;
|
|
17
15
|
/** just exported for tests */
|
|
18
16
|
export declare function beforeAddNetworkBreadcrumb(options: ExtendedNetworkBreadcrumbsOptions, breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;
|
|
19
|
-
/** only exported for tests */
|
|
20
|
-
export declare function getBodySize(body: RequestInit['body'], textEncoder: TextEncoder | TextEncoderInternal): number | undefined;
|
|
21
|
-
/** only exported for tests */
|
|
22
|
-
export declare function parseContentSizeHeader(header: string | null | undefined): number | undefined;
|
|
23
17
|
export {};
|
|
24
18
|
//# sourceMappingURL=handleNetworkBreadcrumbs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleNetworkBreadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleNetworkBreadcrumbs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,
|
|
1
|
+
{"version":3,"file":"handleNetworkBreadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleNetworkBreadcrumbs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EAEd,mBAAmB,EAEpB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAa,eAAe,EAAW,MAAM,UAAU,CAAC;AAMpE,UAAU,iCAAiC;IACzC,MAAM,EAAE,eAAe,CAAC;IACxB,WAAW,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAsBtE;AAED,8BAA8B;AAC9B,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,iCAAiC,EAC1C,UAAU,EAAE,UAAU,EACtB,IAAI,CAAC,EAAE,cAAc,GACpB,IAAI,CA0BN"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HandlerDataXhr } from '@sentry/types';
|
|
2
|
-
import type { ReplayContainer, ReplayPerformanceEntry } from '../types';
|
|
2
|
+
import type { NetworkRequestData, ReplayContainer, ReplayPerformanceEntry } from '../types';
|
|
3
3
|
/** only exported for tests */
|
|
4
|
-
export declare function handleXhr(handlerData: HandlerDataXhr): ReplayPerformanceEntry | null;
|
|
4
|
+
export declare function handleXhr(handlerData: HandlerDataXhr): ReplayPerformanceEntry<NetworkRequestData> | null;
|
|
5
5
|
/**
|
|
6
6
|
* Returns a listener to be added to `addInstrumentationHandler('xhr', listener)`.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleXhr.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleXhr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"handleXhr.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleXhr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAG5F,8BAA8B;AAC9B,wBAAgB,SAAS,CAAC,WAAW,EAAE,cAAc,GAAG,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAwBxG;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,GAAG,CAAC,WAAW,EAAE,cAAc,KAAK,IAAI,CAUpG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addBreadcrumbEvent.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/addBreadcrumbEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CA0BxF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NetworkRequestData, ReplayContainer, ReplayPerformanceEntry } from '../../types';
|
|
2
|
+
/** Add a performance entry breadcrumb */
|
|
3
|
+
export declare function addNetworkBreadcrumb(replay: ReplayContainer, result: ReplayPerformanceEntry<NetworkRequestData> | null): void;
|
|
4
|
+
//# sourceMappingURL=addNetworkBreadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addNetworkBreadcrumb.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/addNetworkBreadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAI/F,yCAAyC;AACzC,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,IAAI,GACxD,IAAI,CAoBN"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Breadcrumb, FetchBreadcrumbData, TextEncoderInternal } from '@sentry/types';
|
|
2
|
+
import type { FetchHint, ReplayContainer } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Capture a fetch breadcrumb to a replay.
|
|
5
|
+
* This adds additional data (where approriate).
|
|
6
|
+
*/
|
|
7
|
+
export declare function captureFetchBreadcrumbToReplay(breadcrumb: Breadcrumb & {
|
|
8
|
+
data: FetchBreadcrumbData;
|
|
9
|
+
}, hint: FetchHint, options: {
|
|
10
|
+
captureBodies: boolean;
|
|
11
|
+
textEncoder: TextEncoderInternal;
|
|
12
|
+
replay: ReplayContainer;
|
|
13
|
+
}): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Enrich a breadcrumb with additional data.
|
|
16
|
+
* This has to be sync & mutate the given breadcrumb,
|
|
17
|
+
* as the breadcrumb is afterwards consumed by other handlers.
|
|
18
|
+
*/
|
|
19
|
+
export declare function enrichFetchBreadcrumb(breadcrumb: Breadcrumb & {
|
|
20
|
+
data: FetchBreadcrumbData;
|
|
21
|
+
}, hint: FetchHint, options: {
|
|
22
|
+
textEncoder: TextEncoderInternal;
|
|
23
|
+
}): void;
|
|
24
|
+
//# sourceMappingURL=fetchUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/fetchUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAG1F,OAAO,KAAK,EACV,SAAS,EAET,eAAe,EAGhB,MAAM,aAAa,CAAC;AAWrB;;;GAGG;AACH,wBAAsB,8BAA8B,CAClD,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,EACtD,IAAI,EAAE,SAAS,EACf,OAAO,EAAE;IAAE,aAAa,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,mBAAmB,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,GAC7F,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,EACtD,IAAI,EAAE,SAAS,EACf,OAAO,EAAE;IAAE,WAAW,EAAE,mBAAmB,CAAA;CAAE,GAC5C,IAAI,CAaN"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TextEncoderInternal } from '@sentry/types';
|
|
2
|
+
import type { NetworkBody, NetworkRequestData, ReplayNetworkRequestData, ReplayNetworkRequestOrResponse, ReplayPerformanceEntry } from '../../types';
|
|
3
|
+
/** Get the size of a body. */
|
|
4
|
+
export declare function getBodySize(body: RequestInit['body'], textEncoder: TextEncoder | TextEncoderInternal): number | undefined;
|
|
5
|
+
/** Convert a Content-Length header to number/undefined. */
|
|
6
|
+
export declare function parseContentLengthHeader(header: string | null | undefined): number | undefined;
|
|
7
|
+
/** Get the string representation of a body. */
|
|
8
|
+
export declare function getBodyString(body: unknown): string | undefined;
|
|
9
|
+
/** Convert ReplayNetworkRequestData to a PerformanceEntry. */
|
|
10
|
+
export declare function makeNetworkReplayBreadcrumb(type: string, data: ReplayNetworkRequestData | null): ReplayPerformanceEntry<NetworkRequestData> | null;
|
|
11
|
+
/** Get either a JSON network body, or a text representation. */
|
|
12
|
+
export declare function getNetworkBody(bodyText: string | undefined): NetworkBody | undefined;
|
|
13
|
+
/** Build the request or response part of a replay network breadcrumb. */
|
|
14
|
+
export declare function buildNetworkRequestOrResponse(bodySize: number | undefined, body: NetworkBody | undefined): ReplayNetworkRequestOrResponse | undefined;
|
|
15
|
+
//# sourceMappingURL=networkUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/networkUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAIzD,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,8BAA8B;AAC9B,wBAAgB,WAAW,CACzB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EACzB,WAAW,EAAE,WAAW,GAAG,mBAAmB,GAC7C,MAAM,GAAG,SAAS,CAiCpB;AAED,4DAA4D;AAC5D,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAO9F;AAED,+CAA+C;AAC/C,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAc/D;AAED,8DAA8D;AAC9D,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,wBAAwB,GAAG,IAAI,GACpC,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAqBnD;AAED,gEAAgE;AAChE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAYpF;AAED,yEAAyE;AACzE,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,IAAI,EAAE,WAAW,GAAG,SAAS,GAC5B,8BAA8B,GAAG,SAAS,CAwB5C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Breadcrumb, TextEncoderInternal, XhrBreadcrumbData } from '@sentry/types';
|
|
2
|
+
import type { ReplayContainer, XhrHint } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Capture an XHR breadcrumb to a replay.
|
|
5
|
+
* This adds additional data (where approriate).
|
|
6
|
+
*/
|
|
7
|
+
export declare function captureXhrBreadcrumbToReplay(breadcrumb: Breadcrumb & {
|
|
8
|
+
data: XhrBreadcrumbData;
|
|
9
|
+
}, hint: XhrHint, options: {
|
|
10
|
+
replay: ReplayContainer;
|
|
11
|
+
captureBodies: boolean;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Enrich a breadcrumb with additional data.
|
|
15
|
+
* This has to be sync & mutate the given breadcrumb,
|
|
16
|
+
* as the breadcrumb is afterwards consumed by other handlers.
|
|
17
|
+
*/
|
|
18
|
+
export declare function enrichXhrBreadcrumb(breadcrumb: Breadcrumb & {
|
|
19
|
+
data: XhrBreadcrumbData;
|
|
20
|
+
}, hint: XhrHint, options: {
|
|
21
|
+
textEncoder: TextEncoderInternal;
|
|
22
|
+
}): void;
|
|
23
|
+
//# sourceMappingURL=xhrUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xhrUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/xhrUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGxF,OAAO,KAAK,EAAE,eAAe,EAA4B,OAAO,EAAE,MAAM,aAAa,CAAC;AAWtF;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,EACpD,IAAI,EAAE,OAAO,EACb,OAAO,EAAE;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,aAAa,EAAE,OAAO,CAAA;CAAE,GAC3D,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,EACpD,IAAI,EAAE,OAAO,EACb,OAAO,EAAE;IAAE,WAAW,EAAE,mBAAmB,CAAA;CAAE,GAC5C,IAAI,CAcN"}
|
package/types/replay.d.ts
CHANGED
|
@@ -228,5 +228,7 @@ export declare class ReplayContainer implements ReplayContainerInterface {
|
|
|
228
228
|
private _flush;
|
|
229
229
|
/** Save the session, if it is sticky */
|
|
230
230
|
private _maybeSaveSession;
|
|
231
|
+
/** Handler for rrweb.record.onMutation */
|
|
232
|
+
private _onMutationHandler;
|
|
231
233
|
}
|
|
232
234
|
//# sourceMappingURL=replay.d.ts.map
|
package/types/replay.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../../src/replay.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAc,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAQrE,OAAO,KAAK,EAEV,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,oBAAoB,EAEpB,gBAAgB,EAChB,eAAe,IAAI,wBAAwB,EAC3C,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACT,MAAM,SAAS,CAAC;AAajB;;GAEG;AACH,qBAAa,eAAgB,YAAW,wBAAwB;IACvD,WAAW,EAAE,WAAW,GAAG,IAAI,CAAQ;IAE9C;;O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AAS;IA2DvB;;;OAGG;IACH,OAAO,CAAC,MAAM,CAyCZ;IAEF,wCAAwC;IACxC,OAAO,CAAC,iBAAiB;IAMzB,0CAA0C;IAC1C,OAAO,CAAC,kBAAkB,CA4BxB;CACH"}
|
package/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReplayRecordingData, ReplayRecordingMode } from '@sentry/types';
|
|
1
|
+
import type { FetchBreadcrumbHint, HandlerDataFetch, ReplayRecordingData, ReplayRecordingMode, SentryWrappedXMLHttpRequest, XhrBreadcrumbHint } from '@sentry/types';
|
|
2
2
|
import type { eventWithTime, recordOptions } from './types/rrweb';
|
|
3
3
|
export declare type RecordingEvent = eventWithTime;
|
|
4
4
|
export declare type RecordingOptions = recordOptions;
|
|
@@ -26,11 +26,102 @@ export interface WorkerRequest {
|
|
|
26
26
|
arg?: string;
|
|
27
27
|
}
|
|
28
28
|
export declare type PerformancePaintTiming = PerformanceEntry;
|
|
29
|
-
export declare type PerformanceNavigationTiming = PerformanceEntry & {
|
|
29
|
+
export declare type PerformanceNavigationTiming = PerformanceEntry & PerformanceResourceTiming & {
|
|
30
30
|
type: string;
|
|
31
31
|
transferSize: number;
|
|
32
|
+
/**
|
|
33
|
+
* A DOMHighResTimeStamp representing the time immediately before the user agent
|
|
34
|
+
* sets the document's readyState to "interactive".
|
|
35
|
+
*/
|
|
36
|
+
domInteractive: number;
|
|
37
|
+
/**
|
|
38
|
+
* A DOMHighResTimeStamp representing the time immediately before the current
|
|
39
|
+
* document's DOMContentLoaded event handler starts.
|
|
40
|
+
*/
|
|
41
|
+
domContentLoadedEventStart: number;
|
|
42
|
+
/**
|
|
43
|
+
* A DOMHighResTimeStamp representing the time immediately after the current
|
|
44
|
+
* document's DOMContentLoaded event handler completes.
|
|
45
|
+
*/
|
|
46
|
+
domContentLoadedEventEnd: number;
|
|
47
|
+
/**
|
|
48
|
+
* A DOMHighResTimeStamp representing the time immediately before the current
|
|
49
|
+
* document's load event handler starts.
|
|
50
|
+
*/
|
|
51
|
+
loadEventStart: number;
|
|
52
|
+
/**
|
|
53
|
+
* A DOMHighResTimeStamp representing the time immediately after the current
|
|
54
|
+
* document's load event handler completes.
|
|
55
|
+
*/
|
|
56
|
+
loadEventEnd: number;
|
|
57
|
+
/**
|
|
58
|
+
* A DOMHighResTimeStamp representing the time immediately before the user agent
|
|
59
|
+
* sets the document's readyState to "complete".
|
|
60
|
+
*/
|
|
32
61
|
domComplete: number;
|
|
62
|
+
/**
|
|
63
|
+
* A number representing the number of redirects since the last non-redirect
|
|
64
|
+
* navigation in the current browsing context.
|
|
65
|
+
*/
|
|
66
|
+
redirectCount: number;
|
|
33
67
|
};
|
|
68
|
+
export declare type ExperimentalPerformanceResourceTiming = PerformanceResourceTiming & {
|
|
69
|
+
responseStatus?: number;
|
|
70
|
+
};
|
|
71
|
+
export declare type PaintData = undefined;
|
|
72
|
+
/**
|
|
73
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming
|
|
74
|
+
*
|
|
75
|
+
* Note `navigation.push` will not have any data
|
|
76
|
+
*/
|
|
77
|
+
export declare type NavigationData = Partial<Pick<PerformanceNavigationTiming, 'decodedBodySize' | 'encodedBodySize' | 'duration' | 'domInteractive' | 'domContentLoadedEventEnd' | 'domContentLoadedEventStart' | 'loadEventStart' | 'loadEventEnd' | 'domComplete' | 'redirectCount'>> & {
|
|
78
|
+
/**
|
|
79
|
+
* Transfer size of resource
|
|
80
|
+
*/
|
|
81
|
+
size?: number;
|
|
82
|
+
};
|
|
83
|
+
export declare type ResourceData = Pick<PerformanceResourceTiming, 'decodedBodySize' | 'encodedBodySize'> & {
|
|
84
|
+
/**
|
|
85
|
+
* Transfer size of resource
|
|
86
|
+
*/
|
|
87
|
+
size: number;
|
|
88
|
+
/**
|
|
89
|
+
* HTTP status code. Note this is experimental and not available on all browsers.
|
|
90
|
+
*/
|
|
91
|
+
statusCode?: number;
|
|
92
|
+
};
|
|
93
|
+
export interface LargestContentfulPaintData {
|
|
94
|
+
/**
|
|
95
|
+
* Render time (in ms) of the LCP
|
|
96
|
+
*/
|
|
97
|
+
value: number;
|
|
98
|
+
size: number;
|
|
99
|
+
/**
|
|
100
|
+
* The recording id of the LCP node. -1 if not found
|
|
101
|
+
*/
|
|
102
|
+
nodeId?: number;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Entries that come from window.performance
|
|
106
|
+
*/
|
|
107
|
+
export declare type AllPerformanceEntryData = PaintData | NavigationData | ResourceData | LargestContentfulPaintData;
|
|
108
|
+
export interface MemoryData {
|
|
109
|
+
memory: {
|
|
110
|
+
jsHeapSizeLimit: number;
|
|
111
|
+
totalJSHeapSize: number;
|
|
112
|
+
usedJSHeapSize: number;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
export interface NetworkRequestData {
|
|
116
|
+
method?: string;
|
|
117
|
+
statusCode?: number;
|
|
118
|
+
requestBodySize?: number;
|
|
119
|
+
responseBodySize?: number;
|
|
120
|
+
}
|
|
121
|
+
export interface HistoryData {
|
|
122
|
+
previous: string;
|
|
123
|
+
}
|
|
124
|
+
export declare type AllEntryData = AllPerformanceEntryData | MemoryData | NetworkRequestData | HistoryData;
|
|
34
125
|
/**
|
|
35
126
|
* The response from the worker
|
|
36
127
|
*/
|
|
@@ -92,7 +183,9 @@ export interface ReplayPluginOptions extends SessionOptions {
|
|
|
92
183
|
_experiments: Partial<{
|
|
93
184
|
captureExceptions: boolean;
|
|
94
185
|
traceInternals: boolean;
|
|
95
|
-
|
|
186
|
+
mutationLimit: number;
|
|
187
|
+
mutationBreadcrumbLimit: number;
|
|
188
|
+
captureNetworkBodies: boolean;
|
|
96
189
|
}>;
|
|
97
190
|
}
|
|
98
191
|
export interface ReplayIntegrationPrivacyOptions {
|
|
@@ -265,7 +358,7 @@ export interface ReplayContainer {
|
|
|
265
358
|
checkAndHandleExpiredSession(): boolean | void;
|
|
266
359
|
setInitialState(): void;
|
|
267
360
|
}
|
|
268
|
-
export interface ReplayPerformanceEntry {
|
|
361
|
+
export interface ReplayPerformanceEntry<T> {
|
|
269
362
|
/**
|
|
270
363
|
* One of these types https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType
|
|
271
364
|
*/
|
|
@@ -285,7 +378,35 @@ export interface ReplayPerformanceEntry {
|
|
|
285
378
|
/**
|
|
286
379
|
* Additional unstructured data to be included
|
|
287
380
|
*/
|
|
288
|
-
data
|
|
381
|
+
data: T;
|
|
289
382
|
}
|
|
383
|
+
declare type RequestBody = null | Blob | BufferSource | FormData | URLSearchParams | string;
|
|
384
|
+
export declare type XhrHint = XhrBreadcrumbHint & {
|
|
385
|
+
xhr: XMLHttpRequest & SentryWrappedXMLHttpRequest;
|
|
386
|
+
input?: RequestBody;
|
|
387
|
+
};
|
|
388
|
+
export declare type FetchHint = FetchBreadcrumbHint & {
|
|
389
|
+
input: HandlerDataFetch['args'];
|
|
390
|
+
response: Response;
|
|
391
|
+
};
|
|
392
|
+
export declare type NetworkBody = Record<string, unknown> | string;
|
|
393
|
+
declare type NetworkMetaError = 'MAX_BODY_SIZE_EXCEEDED';
|
|
394
|
+
interface NetworkMeta {
|
|
395
|
+
errors?: NetworkMetaError[];
|
|
396
|
+
}
|
|
397
|
+
export interface ReplayNetworkRequestOrResponse {
|
|
398
|
+
size?: number;
|
|
399
|
+
body?: NetworkBody;
|
|
400
|
+
_meta?: NetworkMeta;
|
|
401
|
+
}
|
|
402
|
+
export declare type ReplayNetworkRequestData = {
|
|
403
|
+
startTimestamp: number;
|
|
404
|
+
endTimestamp: number;
|
|
405
|
+
url: string;
|
|
406
|
+
method?: string;
|
|
407
|
+
statusCode: number;
|
|
408
|
+
request?: ReplayNetworkRequestOrResponse;
|
|
409
|
+
response?: ReplayNetworkRequestOrResponse;
|
|
410
|
+
};
|
|
290
411
|
export {};
|
|
291
412
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAElE,oBAAY,cAAc,GAAG,aAAa,CAAC;AAC3C,oBAAY,gBAAgB,GAAG,aAAa,CAAC;AAE7C,oBAAY,mBAAmB,GAAG,sBAAsB,GAAG,yBAAyB,GAAG,2BAA2B,CAAC;AAEnH,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,mBAAmB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B,EAAE,OAAO,CAAC;IACrC,YAAY,EAAE,eAAe,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAID,oBAAY,sBAAsB,GAAG,gBAAgB,CAAC;AACtD,oBAAY,2BAA2B,GAAG,gBAAgB,GACxD,yBAAyB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,cAAc,EAAE,M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C,KAAK,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,oBAAY,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;AAE3D,aAAK,gBAAgB,GAAG,wBAAwB,CAAC;AAEjD,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,oBAAY,wBAAwB,GAAG;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,8BAA8B,CAAC;IACzC,QAAQ,CAAC,EAAE,8BAA8B,CAAC;CAC3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addMemoryEntry.d.ts","sourceRoot":"","sources":["../../../../src/util/addMemoryEntry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"addMemoryEntry.d.ts","sourceRoot":"","sources":["../../../../src/util/addMemoryEntry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAc,eAAe,EAA0B,MAAM,UAAU,CAAC;AAWpG;;;GAGG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC,CAanG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AllPerformanceEntry, ReplayPerformanceEntry } from '../types';
|
|
1
|
+
import type { AllPerformanceEntry, AllPerformanceEntryData, ReplayPerformanceEntry } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Create replay performance entries from the browser performance entries.
|
|
4
4
|
*/
|
|
5
|
-
export declare function createPerformanceEntries(entries: AllPerformanceEntry[]): ReplayPerformanceEntry[];
|
|
5
|
+
export declare function createPerformanceEntries(entries: AllPerformanceEntry[]): ReplayPerformanceEntry<AllPerformanceEntryData>[];
|
|
6
6
|
//# sourceMappingURL=createPerformanceEntries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPerformanceEntries.d.ts","sourceRoot":"","sources":["../../../../src/util/createPerformanceEntries.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,
|
|
1
|
+
{"version":3,"file":"createPerformanceEntries.d.ts","sourceRoot":"","sources":["../../../../src/util/createPerformanceEntries.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EAOvB,sBAAsB,EAEvB,MAAM,UAAU,CAAC;AAiBlB;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,mBAAmB,EAAE,GAC7B,sBAAsB,CAAC,uBAAuB,CAAC,EAAE,CAEnD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AddEventResult, ReplayContainer, ReplayPerformanceEntry } from '../types';
|
|
1
|
+
import type { AddEventResult, AllEntryData, ReplayContainer, ReplayPerformanceEntry } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Create a "span" for each performance entry. The parent transaction is `this.replayEvent`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function createPerformanceSpans(replay: ReplayContainer, entries: ReplayPerformanceEntry[]): Promise<AddEventResult | null>[];
|
|
5
|
+
export declare function createPerformanceSpans(replay: ReplayContainer, entries: ReplayPerformanceEntry<AllEntryData>[]): Promise<AddEventResult | null>[];
|
|
6
6
|
//# sourceMappingURL=createPerformanceSpans.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPerformanceSpans.d.ts","sourceRoot":"","sources":["../../../../src/util/createPerformanceSpans.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"createPerformanceSpans.d.ts","sourceRoot":"","sources":["../../../../src/util/createPerformanceSpans.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGtG;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,sBAAsB,CAAC,YAAY,CAAC,EAAE,GAC9C,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,EAAE,CAiBlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendReplayRequest.d.ts","sourceRoot":"","sources":["../../../../src/util/sendReplayRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAI/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,aAAa,EACb,QAAQ,EACR,SAAS,EAAE,UAAU,EACrB,2BAA2B,EAC3B,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,GACR,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,GAAG,4BAA4B,CAAC,
|
|
1
|
+
{"version":3,"file":"sendReplayRequest.d.ts","sourceRoot":"","sources":["../../../../src/util/sendReplayRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAI/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,aAAa,EACb,QAAQ,EACR,SAAS,EAAE,UAAU,EACrB,2BAA2B,EAC3B,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,GACR,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,GAAG,4BAA4B,CAAC,CAsH/D;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;gBAC9B,UAAU,EAAE,MAAM;CAGtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addBreadcrumbEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/addBreadcrumbEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CA0BxF"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ReplayContainer, ReplayPerformanceEntry } from '../types';
|
|
2
|
-
/** Add a performance entry breadcrumb */
|
|
3
|
-
export declare function addNetworkBreadcrumb(replay: ReplayContainer, result: ReplayPerformanceEntry | null): void;
|
|
4
|
-
//# sourceMappingURL=addNetworkBreadcrumb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addNetworkBreadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/addNetworkBreadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAIxE,yCAAyC;AACzC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,sBAAsB,GAAG,IAAI,GAAG,IAAI,CAoBzG"}
|