@sentry/replay 10.70.0 → 11.0.0-alpha.1
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/index.js +12 -12
- package/build/npm/cjs/index.js.map +1 -1
- package/build/npm/esm/index.js +12 -12
- package/build/npm/esm/index.js.map +1 -1
- package/build/npm/esm/package.json +1 -1
- package/build/npm/types/coreHandlers/handleClick.d.ts.map +1 -1
- package/build/npm/types/coreHandlers/handleDom.d.ts.map +1 -1
- package/build/npm/types/coreHandlers/util/addFeedbackBreadcrumb.d.ts.map +1 -1
- package/build/npm/types/eventBuffer/EventBufferArray.d.ts.map +1 -1
- package/build/npm/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +1 -1
- package/build/npm/types/eventBuffer/EventBufferProxy.d.ts.map +1 -1
- package/build/npm/types/eventBuffer/WorkerHandler.d.ts.map +1 -1
- package/build/npm/types/eventBuffer/error.d.ts.map +1 -1
- package/build/npm/types/integration.d.ts.map +1 -1
- package/build/npm/types/replay.d.ts.map +1 -1
- package/build/npm/types/util/createPerformanceEntries.d.ts.map +1 -1
- package/build/npm/types/util/sendReplayRequest.d.ts.map +1 -1
- package/package.json +8 -17
- package/build/npm/types-ts3.8/constants.d.ts +0 -28
- package/build/npm/types-ts3.8/coreHandlers/handleAfterSendEvent.d.ts +0 -9
- package/build/npm/types-ts3.8/coreHandlers/handleBeforeSendEvent.d.ts +0 -9
- package/build/npm/types-ts3.8/coreHandlers/handleBreadcrumbs.d.ts +0 -14
- package/build/npm/types-ts3.8/coreHandlers/handleClick.d.ts +0 -47
- package/build/npm/types-ts3.8/coreHandlers/handleDom.d.ts +0 -11
- package/build/npm/types-ts3.8/coreHandlers/handleGlobalEvent.d.ts +0 -7
- package/build/npm/types-ts3.8/coreHandlers/handleHistory.d.ts +0 -7
- package/build/npm/types-ts3.8/coreHandlers/handleKeyboardEvent.d.ts +0 -7
- package/build/npm/types-ts3.8/coreHandlers/handleNetworkBreadcrumbs.d.ts +0 -16
- package/build/npm/types-ts3.8/coreHandlers/handleProcessSegmentSpan.d.ts +0 -6
- package/build/npm/types-ts3.8/coreHandlers/performanceObserver.d.ts +0 -7
- package/build/npm/types-ts3.8/coreHandlers/util/addBreadcrumbEvent.d.ts +0 -7
- package/build/npm/types-ts3.8/coreHandlers/util/addFeedbackBreadcrumb.d.ts +0 -7
- package/build/npm/types-ts3.8/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -4
- package/build/npm/types-ts3.8/coreHandlers/util/addSegmentDetailsToContext.d.ts +0 -3
- package/build/npm/types-ts3.8/coreHandlers/util/domUtils.d.ts +0 -15
- package/build/npm/types-ts3.8/coreHandlers/util/fetchUtils.d.ts +0 -23
- package/build/npm/types-ts3.8/coreHandlers/util/getAttributesToRecord.d.ts +0 -5
- package/build/npm/types-ts3.8/coreHandlers/util/networkUtils.d.ts +0 -21
- package/build/npm/types-ts3.8/coreHandlers/util/onWindowOpen.d.ts +0 -8
- package/build/npm/types-ts3.8/coreHandlers/util/shouldSampleForBufferEvent.d.ts +0 -9
- package/build/npm/types-ts3.8/coreHandlers/util/xhrUtils.d.ts +0 -36
- package/build/npm/types-ts3.8/debug-build.d.ts +0 -7
- package/build/npm/types-ts3.8/eventBuffer/EventBufferArray.d.ts +0 -30
- package/build/npm/types-ts3.8/eventBuffer/EventBufferCompressionWorker.d.ts +0 -52
- package/build/npm/types-ts3.8/eventBuffer/EventBufferProxy.d.ts +0 -45
- package/build/npm/types-ts3.8/eventBuffer/WorkerHandler.d.ts +0 -29
- package/build/npm/types-ts3.8/eventBuffer/error.d.ts +0 -5
- package/build/npm/types-ts3.8/eventBuffer/index.d.ts +0 -11
- package/build/npm/types-ts3.8/index.d.ts +0 -4
- package/build/npm/types-ts3.8/integration.d.ts +0 -117
- package/build/npm/types-ts3.8/replay.d.ts +0 -320
- package/build/npm/types-ts3.8/session/Session.d.ts +0 -8
- package/build/npm/types-ts3.8/session/clearSession.d.ts +0 -6
- package/build/npm/types-ts3.8/session/createSession.d.ts +0 -14
- package/build/npm/types-ts3.8/session/fetchSession.d.ts +0 -6
- package/build/npm/types-ts3.8/session/loadOrCreateSession.d.ts +0 -11
- package/build/npm/types-ts3.8/session/saveSession.d.ts +0 -6
- package/build/npm/types-ts3.8/session/shouldRefreshSession.d.ts +0 -7
- package/build/npm/types-ts3.8/types/index.d.ts +0 -6
- package/build/npm/types-ts3.8/types/performance.d.ts +0 -136
- package/build/npm/types-ts3.8/types/replay.d.ts +0 -487
- package/build/npm/types-ts3.8/types/replayFrame.d.ts +0 -188
- package/build/npm/types-ts3.8/types/request.d.ts +0 -15
- package/build/npm/types-ts3.8/types/rrweb.d.ts +0 -64
- package/build/npm/types-ts3.8/util/addEvent.d.ts +0 -20
- package/build/npm/types-ts3.8/util/addGlobalListeners.d.ts +0 -6
- package/build/npm/types-ts3.8/util/addMemoryEntry.d.ts +0 -7
- package/build/npm/types-ts3.8/util/createBreadcrumb.d.ts +0 -6
- package/build/npm/types-ts3.8/util/createPerformanceEntries.d.ts +0 -52
- package/build/npm/types-ts3.8/util/createPerformanceSpans.d.ts +0 -6
- package/build/npm/types-ts3.8/util/createReplayEnvelope.d.ts +0 -7
- package/build/npm/types-ts3.8/util/debounce.d.ts +0 -30
- package/build/npm/types-ts3.8/util/eventUtils.d.ts +0 -10
- package/build/npm/types-ts3.8/util/getPrivacyOptions.d.ts +0 -17
- package/build/npm/types-ts3.8/util/getRecordingSamplingOptions.d.ts +0 -10
- package/build/npm/types-ts3.8/util/getReplay.d.ts +0 -6
- package/build/npm/types-ts3.8/util/handleRecordingEmit.d.ts +0 -15
- package/build/npm/types-ts3.8/util/hasSessionStorage.d.ts +0 -3
- package/build/npm/types-ts3.8/util/isExpired.d.ts +0 -6
- package/build/npm/types-ts3.8/util/isRrwebError.d.ts +0 -6
- package/build/npm/types-ts3.8/util/isSampled.d.ts +0 -8
- package/build/npm/types-ts3.8/util/isSessionExpired.d.ts +0 -10
- package/build/npm/types-ts3.8/util/logger.d.ts +0 -24
- package/build/npm/types-ts3.8/util/maskAttribute.d.ts +0 -17
- package/build/npm/types-ts3.8/util/prepareRecordingData.d.ts +0 -9
- package/build/npm/types-ts3.8/util/prepareReplayEvent.d.ts +0 -11
- package/build/npm/types-ts3.8/util/resetReplayIdOnDynamicSamplingContext.d.ts +0 -14
- package/build/npm/types-ts3.8/util/rrweb.d.ts +0 -7
- package/build/npm/types-ts3.8/util/sendReplay.d.ts +0 -9
- package/build/npm/types-ts3.8/util/sendReplayRequest.d.ts +0 -27
- package/build/npm/types-ts3.8/util/shouldFilterRequest.d.ts +0 -7
- package/build/npm/types-ts3.8/util/throttle.d.ts +0 -12
- package/build/npm/types-ts3.8/util/timestamp.d.ts +0 -9
- package/build/npm/types-ts3.8/worker-bundler.d.ts +0 -2
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { Breadcrumb } from '@sentry/core';
|
|
2
|
-
import { HistoryData, MemoryData, NavigationData, NetworkRequestData, PaintData, ResourceData, WebVitalData } from './performance';
|
|
3
|
-
import { ReplayEventTypeCustom } from './rrweb';
|
|
4
|
-
type AnyRecord = Record<string, any>;
|
|
5
|
-
interface ReplayBaseBreadcrumbFrame {
|
|
6
|
-
timestamp: number;
|
|
7
|
-
/**
|
|
8
|
-
* For compatibility reasons
|
|
9
|
-
*/
|
|
10
|
-
type: string;
|
|
11
|
-
category: string;
|
|
12
|
-
data?: AnyRecord;
|
|
13
|
-
message?: string;
|
|
14
|
-
}
|
|
15
|
-
interface ReplayBaseDomFrameData {
|
|
16
|
-
nodeId?: number;
|
|
17
|
-
node?: {
|
|
18
|
-
id: number;
|
|
19
|
-
tagName: string;
|
|
20
|
-
textContent: string;
|
|
21
|
-
attributes: AnyRecord;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
interface ReplayConsoleFrameData {
|
|
25
|
-
logger: string;
|
|
26
|
-
arguments?: unknown[];
|
|
27
|
-
}
|
|
28
|
-
interface ReplayConsoleFrame extends ReplayBaseBreadcrumbFrame {
|
|
29
|
-
category: 'console';
|
|
30
|
-
level: Breadcrumb['level'];
|
|
31
|
-
message: string;
|
|
32
|
-
data: ReplayConsoleFrameData;
|
|
33
|
-
}
|
|
34
|
-
type ReplayClickFrameData = ReplayBaseDomFrameData;
|
|
35
|
-
interface ReplayClickFrame extends ReplayBaseBreadcrumbFrame {
|
|
36
|
-
category: 'ui.click';
|
|
37
|
-
message: string;
|
|
38
|
-
data: ReplayClickFrameData;
|
|
39
|
-
}
|
|
40
|
-
interface ReplayInputFrame extends ReplayBaseBreadcrumbFrame {
|
|
41
|
-
category: 'ui.input';
|
|
42
|
-
message: string;
|
|
43
|
-
}
|
|
44
|
-
interface ReplayMutationFrameData {
|
|
45
|
-
count: number;
|
|
46
|
-
limit: boolean;
|
|
47
|
-
}
|
|
48
|
-
interface ReplayMutationFrame extends ReplayBaseBreadcrumbFrame {
|
|
49
|
-
category: 'replay.mutations';
|
|
50
|
-
data: ReplayMutationFrameData;
|
|
51
|
-
}
|
|
52
|
-
interface ReplayHydrationErrorFrameData {
|
|
53
|
-
url: string;
|
|
54
|
-
}
|
|
55
|
-
interface ReplayHydrationErrorFrame extends ReplayBaseBreadcrumbFrame {
|
|
56
|
-
category: 'replay.hydrate-error';
|
|
57
|
-
data: ReplayHydrationErrorFrameData;
|
|
58
|
-
}
|
|
59
|
-
interface ReplayKeyboardEventFrameData extends ReplayBaseDomFrameData {
|
|
60
|
-
metaKey: boolean;
|
|
61
|
-
shiftKey: boolean;
|
|
62
|
-
ctrlKey: boolean;
|
|
63
|
-
altKey: boolean;
|
|
64
|
-
key: string;
|
|
65
|
-
}
|
|
66
|
-
interface ReplayKeyboardEventFrame extends ReplayBaseBreadcrumbFrame {
|
|
67
|
-
category: 'ui.keyDown';
|
|
68
|
-
data: ReplayKeyboardEventFrameData;
|
|
69
|
-
}
|
|
70
|
-
interface ReplayBlurFrame extends ReplayBaseBreadcrumbFrame {
|
|
71
|
-
category: 'ui.blur';
|
|
72
|
-
}
|
|
73
|
-
interface ReplayFocusFrame extends ReplayBaseBreadcrumbFrame {
|
|
74
|
-
category: 'ui.focus';
|
|
75
|
-
}
|
|
76
|
-
interface ReplaySlowClickFrameData extends ReplayClickFrameData {
|
|
77
|
-
url: string;
|
|
78
|
-
route?: string;
|
|
79
|
-
timeAfterClickMs: number;
|
|
80
|
-
endReason: string;
|
|
81
|
-
clickCount?: number;
|
|
82
|
-
}
|
|
83
|
-
export interface ReplaySlowClickFrame extends ReplayBaseBreadcrumbFrame {
|
|
84
|
-
category: 'ui.slowClickDetected';
|
|
85
|
-
data: ReplaySlowClickFrameData;
|
|
86
|
-
}
|
|
87
|
-
interface ReplayMultiClickFrameData extends ReplayClickFrameData {
|
|
88
|
-
url: string;
|
|
89
|
-
route?: string;
|
|
90
|
-
clickCount: number;
|
|
91
|
-
metric: true;
|
|
92
|
-
}
|
|
93
|
-
export interface ReplayMultiClickFrame extends ReplayBaseBreadcrumbFrame {
|
|
94
|
-
category: 'ui.multiClick';
|
|
95
|
-
data: ReplayMultiClickFrameData;
|
|
96
|
-
}
|
|
97
|
-
interface ReplayOptionFrame {
|
|
98
|
-
blockAllMedia: boolean;
|
|
99
|
-
errorSampleRate: number;
|
|
100
|
-
maskAllInputs: boolean;
|
|
101
|
-
maskAllText: boolean;
|
|
102
|
-
networkCaptureBodies: boolean;
|
|
103
|
-
networkDetailHasUrls: boolean;
|
|
104
|
-
networkRequestHasHeaders: boolean;
|
|
105
|
-
networkResponseHasHeaders: boolean;
|
|
106
|
-
sessionSampleRate: number;
|
|
107
|
-
shouldRecordCanvas: boolean;
|
|
108
|
-
useCompression: boolean;
|
|
109
|
-
useCompressionOption: boolean;
|
|
110
|
-
}
|
|
111
|
-
interface ReplayFeedbackFrameData {
|
|
112
|
-
feedbackId: string;
|
|
113
|
-
}
|
|
114
|
-
interface ReplayFeedbackFrame extends ReplayBaseBreadcrumbFrame {
|
|
115
|
-
category: 'sentry.feedback';
|
|
116
|
-
data: ReplayFeedbackFrameData;
|
|
117
|
-
}
|
|
118
|
-
export type ReplayBreadcrumbFrame = ReplayConsoleFrame | ReplayClickFrame | ReplayInputFrame | ReplayKeyboardEventFrame | ReplayBlurFrame | ReplayFocusFrame | ReplaySlowClickFrame | ReplayMultiClickFrame | ReplayMutationFrame | ReplayHydrationErrorFrame | ReplayFeedbackFrame | ReplayBaseBreadcrumbFrame;
|
|
119
|
-
interface ReplayBaseSpanFrame {
|
|
120
|
-
op: string;
|
|
121
|
-
description: string;
|
|
122
|
-
startTimestamp: number;
|
|
123
|
-
endTimestamp: number;
|
|
124
|
-
data?: undefined | AnyRecord;
|
|
125
|
-
}
|
|
126
|
-
interface ReplayHistoryFrame extends ReplayBaseSpanFrame {
|
|
127
|
-
data: HistoryData;
|
|
128
|
-
op: 'navigation.push';
|
|
129
|
-
}
|
|
130
|
-
interface ReplayWebVitalFrame extends ReplayBaseSpanFrame {
|
|
131
|
-
data: WebVitalData;
|
|
132
|
-
op: 'largest-contentful-paint' | 'cumulative-layout-shift' | 'interaction-to-next-paint';
|
|
133
|
-
}
|
|
134
|
-
interface ReplayMemoryFrame extends ReplayBaseSpanFrame {
|
|
135
|
-
data: MemoryData;
|
|
136
|
-
op: 'memory';
|
|
137
|
-
}
|
|
138
|
-
interface ReplayNavigationFrame extends ReplayBaseSpanFrame {
|
|
139
|
-
data: NavigationData;
|
|
140
|
-
op: 'navigation.navigate' | 'navigation.reload' | 'navigation.back_forward';
|
|
141
|
-
}
|
|
142
|
-
interface ReplayPaintFrame extends ReplayBaseSpanFrame {
|
|
143
|
-
data: PaintData;
|
|
144
|
-
op: 'paint';
|
|
145
|
-
}
|
|
146
|
-
interface ReplayRequestFrame extends ReplayBaseSpanFrame {
|
|
147
|
-
data: NetworkRequestData;
|
|
148
|
-
op: 'resource.fetch' | 'resource.xhr';
|
|
149
|
-
}
|
|
150
|
-
interface ReplayResourceFrame extends ReplayBaseSpanFrame {
|
|
151
|
-
data: ResourceData;
|
|
152
|
-
op: 'resource.css' | 'resource.iframe' | 'resource.img' | 'resource.link' | 'resource.other' | 'resource.script';
|
|
153
|
-
}
|
|
154
|
-
export type ReplaySpanFrame = ReplayBaseSpanFrame | ReplayHistoryFrame | ReplayRequestFrame | ReplayWebVitalFrame | ReplayMemoryFrame | ReplayNavigationFrame | ReplayPaintFrame | ReplayResourceFrame;
|
|
155
|
-
export type ReplayFrame = ReplayBreadcrumbFrame | ReplaySpanFrame;
|
|
156
|
-
interface RecordingCustomEvent {
|
|
157
|
-
type: typeof ReplayEventTypeCustom;
|
|
158
|
-
timestamp: number;
|
|
159
|
-
data: {
|
|
160
|
-
tag: string;
|
|
161
|
-
payload: unknown;
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
export interface ReplayBreadcrumbFrameEvent extends RecordingCustomEvent {
|
|
165
|
-
data: {
|
|
166
|
-
tag: 'breadcrumb';
|
|
167
|
-
payload: ReplayBreadcrumbFrame;
|
|
168
|
-
/**
|
|
169
|
-
* This will indicate to backend to additionally log as a metric
|
|
170
|
-
*/
|
|
171
|
-
metric?: boolean;
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
export interface ReplaySpanFrameEvent extends RecordingCustomEvent {
|
|
175
|
-
data: {
|
|
176
|
-
tag: 'performanceSpan';
|
|
177
|
-
payload: ReplaySpanFrame;
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
export interface ReplayOptionFrameEvent extends RecordingCustomEvent {
|
|
181
|
-
data: {
|
|
182
|
-
tag: 'options';
|
|
183
|
-
payload: ReplayOptionFrame;
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
export type ReplayFrameEvent = ReplayBreadcrumbFrameEvent | ReplaySpanFrameEvent | ReplayOptionFrameEvent;
|
|
187
|
-
export {};
|
|
188
|
-
//# sourceMappingURL=replayFrame.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NetworkMetaWarning } from '@sentry/browser-utils';
|
|
2
|
-
type JsonObject = Record<string, unknown>;
|
|
3
|
-
type JsonArray = unknown[];
|
|
4
|
-
export type NetworkBody = JsonObject | JsonArray | string;
|
|
5
|
-
interface NetworkMeta {
|
|
6
|
-
warnings?: NetworkMetaWarning[];
|
|
7
|
-
}
|
|
8
|
-
export interface ReplayNetworkRequestOrResponse {
|
|
9
|
-
size?: number;
|
|
10
|
-
body?: NetworkBody;
|
|
11
|
-
headers: Record<string, string>;
|
|
12
|
-
_meta?: NetworkMeta;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=request.d.ts.map
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
type ClassOption = string | RegExp;
|
|
2
|
-
/** Duplicate this from @sentry/rrweb so we can export this as well. */
|
|
3
|
-
export declare const ReplayEventTypeDomContentLoaded = 0;
|
|
4
|
-
export declare const ReplayEventTypeLoad = 1;
|
|
5
|
-
export declare const ReplayEventTypeFullSnapshot = 2;
|
|
6
|
-
export declare const ReplayEventTypeIncrementalSnapshot = 3;
|
|
7
|
-
export declare const ReplayEventTypeMeta = 4;
|
|
8
|
-
export declare const ReplayEventTypeCustom = 5;
|
|
9
|
-
export declare const ReplayEventTypePlugin = 6;
|
|
10
|
-
export type ReplayEventType = typeof ReplayEventTypeDomContentLoaded | typeof ReplayEventTypeLoad | typeof ReplayEventTypeFullSnapshot | typeof ReplayEventTypeIncrementalSnapshot | typeof ReplayEventTypeMeta | typeof ReplayEventTypeCustom | typeof ReplayEventTypePlugin;
|
|
11
|
-
/**
|
|
12
|
-
* This is a partial copy of rrweb's eventWithTime type which only contains the properties
|
|
13
|
-
* we specifically need in the SDK.
|
|
14
|
-
*/
|
|
15
|
-
export type ReplayEventWithTime = {
|
|
16
|
-
type: ReplayEventType;
|
|
17
|
-
data: unknown;
|
|
18
|
-
timestamp: number;
|
|
19
|
-
delay?: number;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* This is a partial copy of rrweb's recording options which only contains the properties
|
|
23
|
-
* we specifically use in the SDK. Users can specify additional properties, hence we add the
|
|
24
|
-
* Record<string, unknown> union type.
|
|
25
|
-
*/
|
|
26
|
-
export type RrwebRecordOptions = {
|
|
27
|
-
maskAllText?: boolean;
|
|
28
|
-
maskAllInputs?: boolean;
|
|
29
|
-
blockClass?: ClassOption;
|
|
30
|
-
ignoreClass?: string;
|
|
31
|
-
maskTextClass?: ClassOption;
|
|
32
|
-
maskTextSelector?: string;
|
|
33
|
-
blockSelector?: string;
|
|
34
|
-
maskInputOptions?: Record<string, boolean>;
|
|
35
|
-
recordCrossOriginIframes?: boolean;
|
|
36
|
-
} & Record<string, unknown>;
|
|
37
|
-
export interface CanvasManagerInterface {
|
|
38
|
-
reset(): void;
|
|
39
|
-
freeze(): void;
|
|
40
|
-
unfreeze(): void;
|
|
41
|
-
lock(): void;
|
|
42
|
-
unlock(): void;
|
|
43
|
-
snapshot(): void;
|
|
44
|
-
addWindow(win: typeof globalThis & Window): void;
|
|
45
|
-
addShadowRoot(shadowRoot: ShadowRoot): void;
|
|
46
|
-
resetShadowRoots(): void;
|
|
47
|
-
}
|
|
48
|
-
export interface CanvasManagerOptions {
|
|
49
|
-
recordCanvas: boolean;
|
|
50
|
-
enableManualSnapshot?: boolean;
|
|
51
|
-
blockClass: string | RegExp;
|
|
52
|
-
blockSelector: string | null;
|
|
53
|
-
unblockSelector: string | null;
|
|
54
|
-
sampling?: 'all' | number;
|
|
55
|
-
dataURLOptions: Partial<{
|
|
56
|
-
type: string;
|
|
57
|
-
quality: number;
|
|
58
|
-
}>;
|
|
59
|
-
mutationCb: (p: any) => void;
|
|
60
|
-
win: typeof globalThis & Window;
|
|
61
|
-
mirror: any;
|
|
62
|
-
}
|
|
63
|
-
export {};
|
|
64
|
-
//# sourceMappingURL=rrweb.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AddEventResult, RecordingEvent, ReplayContainer } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Add an event to the event buffer.
|
|
4
|
-
* In contrast to `addEvent`, this does not return a promise & does not wait for the adding of the event to succeed/fail.
|
|
5
|
-
* Instead this returns `true` if we tried to add the event, else false.
|
|
6
|
-
* It returns `false` e.g. if we are paused, disabled, or out of the max replay duration.
|
|
7
|
-
*
|
|
8
|
-
* `isCheckout` is true if this is either the very first event, or an event triggered by `checkoutEveryNms`.
|
|
9
|
-
*/
|
|
10
|
-
export declare function addEventSync(replay: ReplayContainer, event: RecordingEvent, isCheckout?: boolean): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Add an event to the event buffer.
|
|
13
|
-
* Resolves to `null` if no event was added, else to `void`.
|
|
14
|
-
*
|
|
15
|
-
* `isCheckout` is true if this is either the very first event, or an event triggered by `checkoutEveryNms`.
|
|
16
|
-
*/
|
|
17
|
-
export declare function addEvent(replay: ReplayContainer, event: RecordingEvent, isCheckout?: boolean): Promise<AddEventResult | null>;
|
|
18
|
-
/** Exported only for tests. */
|
|
19
|
-
export declare function shouldAddEvent(replay: ReplayContainer, event: RecordingEvent): boolean;
|
|
20
|
-
//# sourceMappingURL=addEvent.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AddEventResult, ReplayContainer } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Create a "span" for the total amount of memory being used by JS objects
|
|
4
|
-
* (including v8 internal objects).
|
|
5
|
-
*/
|
|
6
|
-
export declare function addMemoryEntry(replay: ReplayContainer): Promise<Array<AddEventResult | null>>;
|
|
7
|
-
//# sourceMappingURL=addMemoryEntry.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReplayBreadcrumbFrame } from '../types/replayFrame';
|
|
2
|
-
/**
|
|
3
|
-
* Create a breadcrumb for a replay.
|
|
4
|
-
*/
|
|
5
|
-
export declare function createBreadcrumb(breadcrumb: Pick<ReplayBreadcrumbFrame, Exclude<keyof ReplayBreadcrumbFrame, 'timestamp' | 'type'>> & Partial<Pick<ReplayBreadcrumbFrame, 'timestamp'>>): ReplayBreadcrumbFrame;
|
|
6
|
-
//# sourceMappingURL=createBreadcrumb.d.ts.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AllPerformanceEntry, AllPerformanceEntryData, ReplayContainer, ReplayPerformanceEntry, WebVitalData } from '../types';
|
|
2
|
-
export interface Metric {
|
|
3
|
-
/**
|
|
4
|
-
* The current value of the metric.
|
|
5
|
-
*/
|
|
6
|
-
value: number;
|
|
7
|
-
/**
|
|
8
|
-
* The rating as to whether the metric value is within the "good",
|
|
9
|
-
* "needs improvement", or "poor" thresholds of the metric.
|
|
10
|
-
*/
|
|
11
|
-
rating: 'good' | 'needs-improvement' | 'poor';
|
|
12
|
-
/**
|
|
13
|
-
* Any performance entries relevant to the metric value calculation.
|
|
14
|
-
* The array may also be empty if the metric value was not based on any
|
|
15
|
-
* entries (e.g. a CLS value of 0 given no layout shifts).
|
|
16
|
-
*/
|
|
17
|
-
entries: PerformanceEntry[] | LayoutShift[];
|
|
18
|
-
}
|
|
19
|
-
interface LayoutShift extends PerformanceEntry {
|
|
20
|
-
value: number;
|
|
21
|
-
sources: LayoutShiftAttribution[];
|
|
22
|
-
hadRecentInput: boolean;
|
|
23
|
-
}
|
|
24
|
-
interface LayoutShiftAttribution {
|
|
25
|
-
node?: Node;
|
|
26
|
-
previousRect: DOMRectReadOnly;
|
|
27
|
-
currentRect: DOMRectReadOnly;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Handler creater for web vitals
|
|
31
|
-
*/
|
|
32
|
-
export declare function webVitalHandler(getter: (metric: Metric) => ReplayPerformanceEntry<AllPerformanceEntryData>, replay: ReplayContainer): (data: {
|
|
33
|
-
metric: Metric;
|
|
34
|
-
}) => void;
|
|
35
|
-
/**
|
|
36
|
-
* Create replay performance entries from the browser performance entries.
|
|
37
|
-
*/
|
|
38
|
-
export declare function createPerformanceEntries(entries: AllPerformanceEntry[]): ReplayPerformanceEntry<AllPerformanceEntryData>[];
|
|
39
|
-
/**
|
|
40
|
-
* Add a LCP event to the replay based on a LCP metric.
|
|
41
|
-
*/
|
|
42
|
-
export declare function getLargestContentfulPaint(metric: Metric): ReplayPerformanceEntry<WebVitalData>;
|
|
43
|
-
/**
|
|
44
|
-
* Add a CLS event to the replay based on a CLS metric.
|
|
45
|
-
*/
|
|
46
|
-
export declare function getCumulativeLayoutShift(metric: Metric): ReplayPerformanceEntry<WebVitalData>;
|
|
47
|
-
/**
|
|
48
|
-
* Add an INP event to the replay based on an INP metric.
|
|
49
|
-
*/
|
|
50
|
-
export declare function getInteractionToNextPaint(metric: Metric): ReplayPerformanceEntry<WebVitalData>;
|
|
51
|
-
export {};
|
|
52
|
-
//# sourceMappingURL=createPerformanceEntries.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AddEventResult, AllEntryData, ReplayContainer, ReplayPerformanceEntry } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Create a "span" for each performance entry.
|
|
4
|
-
*/
|
|
5
|
-
export declare function createPerformanceSpans(replay: ReplayContainer, entries: ReplayPerformanceEntry<AllEntryData>[]): Promise<AddEventResult | null>[];
|
|
6
|
-
//# sourceMappingURL=createPerformanceSpans.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DsnComponents, ReplayEnvelope, ReplayEvent, ReplayRecordingData } from '@sentry/core';
|
|
2
|
-
/**
|
|
3
|
-
* Create a replay envelope ready to be sent.
|
|
4
|
-
* This includes both the replay event, as well as the recording data.
|
|
5
|
-
*/
|
|
6
|
-
export declare function createReplayEnvelope(replayEvent: ReplayEvent, recordingData: ReplayRecordingData, dsn: DsnComponents, tunnel?: string): ReplayEnvelope;
|
|
7
|
-
//# sourceMappingURL=createReplayEnvelope.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
type DebouncedCallback = {
|
|
2
|
-
(): void | unknown;
|
|
3
|
-
flush: () => void | unknown;
|
|
4
|
-
cancel: () => void;
|
|
5
|
-
};
|
|
6
|
-
type CallbackFunction = () => unknown;
|
|
7
|
-
type DebounceOptions = {
|
|
8
|
-
maxWait?: number;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Heavily simplified debounce function based on lodash.debounce.
|
|
12
|
-
*
|
|
13
|
-
* This function takes a callback function (@param fun) and delays its invocation
|
|
14
|
-
* by @param wait milliseconds. Optionally, a maxWait can be specified in @param options,
|
|
15
|
-
* which ensures that the callback is invoked at least once after the specified max. wait time.
|
|
16
|
-
*
|
|
17
|
-
* @param func the function whose invocation is to be debounced
|
|
18
|
-
* @param wait the minimum time until the function is invoked after it was called once
|
|
19
|
-
* @param options the options object, which can contain the `maxWait` property
|
|
20
|
-
*
|
|
21
|
-
* @returns the debounced version of the function, which needs to be called at least once to start the
|
|
22
|
-
* debouncing process. Subsequent calls will reset the debouncing timer and, in case @paramfunc
|
|
23
|
-
* was already invoked in the meantime, return @param func's return value.
|
|
24
|
-
* The debounced function has two additional properties:
|
|
25
|
-
* - `flush`: Invokes the debounced function immediately and returns its return value
|
|
26
|
-
* - `cancel`: Cancels the debouncing process and resets the debouncing timer
|
|
27
|
-
*/
|
|
28
|
-
export declare function debounce(func: CallbackFunction, wait: number, options?: DebounceOptions): DebouncedCallback;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ErrorEvent, Event, FeedbackEvent, ReplayEvent, TransactionEvent } from '@sentry/core';
|
|
2
|
-
/** If the event is an error event */
|
|
3
|
-
export declare function isErrorEvent(event: Event): event is ErrorEvent;
|
|
4
|
-
/** If the event is a transaction event */
|
|
5
|
-
export declare function isTransactionEvent(event: Event): event is TransactionEvent;
|
|
6
|
-
/** If the event is an replay event */
|
|
7
|
-
export declare function isReplayEvent(event: Event): event is ReplayEvent;
|
|
8
|
-
/** If the event is a feedback event */
|
|
9
|
-
export declare function isFeedbackEvent(event: Event): event is FeedbackEvent;
|
|
10
|
-
//# sourceMappingURL=eventUtils.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReplayIntegrationPrivacyOptions } from '../types';
|
|
2
|
-
type GetPrivacyOptions = Required<Pick<ReplayIntegrationPrivacyOptions, Exclude<keyof ReplayIntegrationPrivacyOptions, 'maskFn'>>>;
|
|
3
|
-
interface GetPrivacyReturn {
|
|
4
|
-
maskTextSelector: string;
|
|
5
|
-
unmaskTextSelector: string;
|
|
6
|
-
blockSelector: string;
|
|
7
|
-
unblockSelector: string;
|
|
8
|
-
ignoreSelector: string;
|
|
9
|
-
blockClass?: RegExp;
|
|
10
|
-
maskTextClass?: RegExp;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Returns privacy related configuration for use in rrweb
|
|
14
|
-
*/
|
|
15
|
-
export declare function getPrivacyOptions({ mask, unmask, block, unblock, ignore }: GetPrivacyOptions): GetPrivacyReturn;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=getPrivacyOptions.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disable sampling mousemove events on iOS browsers as this can cause blocking the main thread
|
|
3
|
-
* https://github.com/getsentry/sentry-javascript/issues/14534
|
|
4
|
-
*/
|
|
5
|
-
export declare function getRecordingSamplingOptions(): Partial<{
|
|
6
|
-
sampling: {
|
|
7
|
-
mousemove: boolean;
|
|
8
|
-
};
|
|
9
|
-
}>;
|
|
10
|
-
//# sourceMappingURL=getRecordingSamplingOptions.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { replayIntegration } from '../integration';
|
|
2
|
-
/**
|
|
3
|
-
* This is a small utility to get a type-safe instance of the Replay integration.
|
|
4
|
-
*/
|
|
5
|
-
export declare function getReplay(): ReturnType<typeof replayIntegration> | undefined;
|
|
6
|
-
//# sourceMappingURL=getReplay.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RecordingEvent, ReplayContainer, ReplayOptionFrameEvent } from '../types';
|
|
2
|
-
type RecordingEmitCallback = (event: RecordingEvent, isCheckout?: boolean) => void;
|
|
3
|
-
/**
|
|
4
|
-
* Handler for recording events.
|
|
5
|
-
*
|
|
6
|
-
* Adds to event buffer, and has varying flushing behaviors if the event was a checkout.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getHandleRecordingEmit(replay: ReplayContainer): RecordingEmitCallback;
|
|
9
|
-
export declare function syncMirrorAttributesFromMutationEvent(event: RecordingEvent): void;
|
|
10
|
-
/**
|
|
11
|
-
* Exported for tests
|
|
12
|
-
*/
|
|
13
|
-
export declare function createOptionsEvent(replay: ReplayContainer): ReplayOptionFrameEvent;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=handleRecordingEmit.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Given an initial timestamp and an expiry duration, checks to see if current
|
|
3
|
-
* time should be considered as expired.
|
|
4
|
-
*/
|
|
5
|
-
export declare function isExpired(initialTime: null | number, expiry: undefined | number, targetTime?: number): boolean;
|
|
6
|
-
//# sourceMappingURL=isExpired.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Event, EventHint } from '@sentry/core';
|
|
2
|
-
/**
|
|
3
|
-
* Returns true if we think the given event is an error originating inside of rrweb.
|
|
4
|
-
*/
|
|
5
|
-
export declare function isRrwebError(event: Event, hint: EventHint): boolean;
|
|
6
|
-
//# sourceMappingURL=isRrwebError.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Session } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Checks to see if session is expired
|
|
4
|
-
*/
|
|
5
|
-
export declare function isSessionExpired(session: Session, { maxReplayDuration, sessionIdleExpire, targetTime, }: {
|
|
6
|
-
maxReplayDuration: number;
|
|
7
|
-
sessionIdleExpire: number;
|
|
8
|
-
targetTime?: number;
|
|
9
|
-
}): boolean;
|
|
10
|
-
//# sourceMappingURL=isSessionExpired.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { debug as coreDebug } from '@sentry/core';
|
|
2
|
-
interface LoggerConfig {
|
|
3
|
-
captureExceptions: boolean;
|
|
4
|
-
traceInternals: boolean;
|
|
5
|
-
}
|
|
6
|
-
type CoreDebugLogger = typeof coreDebug;
|
|
7
|
-
interface ReplayDebugLogger extends CoreDebugLogger {
|
|
8
|
-
/**
|
|
9
|
-
* Calls `debug.log` but saves breadcrumb in the next tick due to race
|
|
10
|
-
* conditions before replay is initialized.
|
|
11
|
-
*/
|
|
12
|
-
infoTick: CoreDebugLogger['log'];
|
|
13
|
-
/**
|
|
14
|
-
* Captures exceptions (`Error`) if "capture internal exceptions" is enabled
|
|
15
|
-
*/
|
|
16
|
-
exception: CoreDebugLogger['error'];
|
|
17
|
-
/**
|
|
18
|
-
* Configures the logger with additional debugging behavior
|
|
19
|
-
*/
|
|
20
|
-
setConfig(config: Partial<LoggerConfig>): void;
|
|
21
|
-
}
|
|
22
|
-
export declare const debug: ReplayDebugLogger;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getPrivacyOptions } from './getPrivacyOptions';
|
|
2
|
-
interface MaskAttributeParams {
|
|
3
|
-
maskAttributes: string[];
|
|
4
|
-
maskAllText: boolean;
|
|
5
|
-
privacyOptions: ReturnType<typeof getPrivacyOptions>;
|
|
6
|
-
key: string;
|
|
7
|
-
value: string;
|
|
8
|
-
el: HTMLElement;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Masks an attribute if necessary, otherwise return attribute value as-is.
|
|
12
|
-
* Keys listed in `maskAttributes` are masked even when `maskAllText` is false;
|
|
13
|
-
* masking `value` on submit/button inputs without listing `value` still requires `maskAllText`.
|
|
14
|
-
*/
|
|
15
|
-
export declare function maskAttribute({ el, key, maskAttributes, maskAllText, privacyOptions, value, }: MaskAttributeParams): string;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=maskAttribute.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReplayRecordingData } from '@sentry/core';
|
|
2
|
-
/**
|
|
3
|
-
* Prepare the recording data ready to be sent.
|
|
4
|
-
*/
|
|
5
|
-
export declare function prepareRecordingData({ recordingData, headers, }: {
|
|
6
|
-
recordingData: ReplayRecordingData;
|
|
7
|
-
headers: Record<string, unknown>;
|
|
8
|
-
}): ReplayRecordingData;
|
|
9
|
-
//# sourceMappingURL=prepareRecordingData.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Client, ReplayEvent, Scope } from '@sentry/core';
|
|
2
|
-
/**
|
|
3
|
-
* Prepare a replay event & enrich it with the SDK metadata.
|
|
4
|
-
*/
|
|
5
|
-
export declare function prepareReplayEvent({ client, scope, replayId: event_id, event, }: {
|
|
6
|
-
client: Client;
|
|
7
|
-
scope: Scope;
|
|
8
|
-
replayId: string;
|
|
9
|
-
event: ReplayEvent;
|
|
10
|
-
}): Promise<ReplayEvent | null>;
|
|
11
|
-
//# sourceMappingURL=prepareReplayEvent.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reset the `replay_id` field on the DSC.
|
|
3
|
-
*/
|
|
4
|
-
export declare function resetReplayIdOnDynamicSamplingContext(): void;
|
|
5
|
-
/**
|
|
6
|
-
* Set the `replay_id` field on the cached DSC.
|
|
7
|
-
* This is needed after a session refresh because the cached DSC on the scope
|
|
8
|
-
* (set by browserTracingIntegration when the idle span ended) persists across
|
|
9
|
-
* session boundaries. Without updating it, the new session's replay_id would
|
|
10
|
-
* never appear in DSC since `getDynamicSamplingContextFromClient` (and its
|
|
11
|
-
* `createDsc` hook) is not called when a cached DSC already exists.
|
|
12
|
-
*/
|
|
13
|
-
export declare function setReplayIdOnDynamicSamplingContext(replayId: string): void;
|
|
14
|
-
//# sourceMappingURL=resetReplayIdOnDynamicSamplingContext.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SendReplayData } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Finalize and send the current replay event to Sentry
|
|
4
|
-
*/
|
|
5
|
-
export declare function sendReplay(replayData: SendReplayData, retryConfig?: {
|
|
6
|
-
count: number;
|
|
7
|
-
interval: number;
|
|
8
|
-
}): Promise<unknown>;
|
|
9
|
-
//# sourceMappingURL=sendReplay.d.ts.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { RateLimits, TransportMakeRequestResponse } from '@sentry/core';
|
|
2
|
-
import { SendReplayData } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Send replay attachment using `fetch()`
|
|
5
|
-
*/
|
|
6
|
-
export declare function sendReplayRequest({ recordingData, replayId, segmentId: segment_id, eventContext, timestamp, session, }: SendReplayData): Promise<TransportMakeRequestResponse>;
|
|
7
|
-
/**
|
|
8
|
-
* This error indicates that the transport returned an invalid status code.
|
|
9
|
-
*/
|
|
10
|
-
export declare class TransportStatusCodeError extends Error {
|
|
11
|
-
constructor(statusCode: number);
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* This error indicates that we hit a rate limit API error.
|
|
15
|
-
*/
|
|
16
|
-
export declare class RateLimitError extends Error {
|
|
17
|
-
rateLimits: RateLimits;
|
|
18
|
-
constructor(rateLimits: RateLimits);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* This error indicates that the replay duration limit was exceeded and the session is too long.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export declare class ReplayDurationLimitError extends Error {
|
|
25
|
-
constructor();
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=sendReplayRequest.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReplayContainer } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Check whether a given request URL should be filtered out. This is so we
|
|
4
|
-
* don't log Sentry ingest requests.
|
|
5
|
-
*/
|
|
6
|
-
export declare function shouldFilterRequest(replay: ReplayContainer, url: string): boolean;
|
|
7
|
-
//# sourceMappingURL=shouldFilterRequest.d.ts.map
|