@cloudcare/browser-rum 3.3.14 → 3.3.16
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 +60 -0
- package/README.zh.md +48 -0
- package/bundle/dataflux-rum.js +1 -1
- package/cjs/boot/buildEnv.js +1 -1
- package/cjs/boot/perStartRum.js +3 -0
- package/cjs/boot/perStartRum.js.map +1 -1
- package/cjs/boot/recorderApi.js +72 -56
- package/cjs/boot/recorderApi.js.map +1 -1
- package/cjs/boot/rumPublicApi.js +35 -3
- package/cjs/boot/rumPublicApi.js.map +1 -1
- package/cjs/boot/startRecording.js +4 -4
- package/cjs/boot/startRecording.js.map +1 -1
- package/cjs/constants.js +8 -8
- package/cjs/constants.js.map +1 -1
- package/cjs/domain/assembly.js +14 -1
- package/cjs/domain/assembly.js.map +1 -1
- package/cjs/domain/configuration.js +62 -0
- package/cjs/domain/configuration.js.map +1 -1
- package/cjs/domain/deflate/deflateWorker.js +1 -1
- package/cjs/domain/encoderStreamId.js +2 -1
- package/cjs/domain/encoderStreamId.js.map +1 -1
- package/cjs/domain/replay/record/canvasEncodeWorker.js +1 -1
- package/cjs/domain/replay/record/record.js +2 -3
- package/cjs/domain/replay/record/record.js.map +1 -1
- package/cjs/domain/replay/record/serializationUtils.js +8 -15
- package/cjs/domain/replay/record/serializationUtils.js.map +1 -1
- package/cjs/domain/replay/record/serialize.js +14 -6
- package/cjs/domain/replay/record/serialize.js.map +1 -1
- package/cjs/domain/requestCollection.js +3 -1
- package/cjs/domain/requestCollection.js.map +1 -1
- package/cjs/domain/rumEventsCollection/error/errorCollection.js +6 -8
- package/cjs/domain/rumEventsCollection/error/errorCollection.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/resourceCollection.js +5 -0
- package/cjs/domain/rumEventsCollection/resource/resourceCollection.js.map +1 -1
- package/cjs/domain/rumSessionManager.js +3 -3
- package/cjs/domain/rumSessionManager.js.map +1 -1
- package/cjs/domain/tracing/tracer.js +5 -1
- package/cjs/domain/tracing/tracer.js.map +1 -1
- package/cjs/domain/visitorId/index.js +417 -0
- package/cjs/domain/visitorId/index.js.map +1 -0
- package/cjs/index.js +7 -0
- package/cjs/index.js.map +1 -1
- package/cjs/transport/startRumBatch.js +44 -3
- package/cjs/transport/startRumBatch.js.map +1 -1
- package/esm/boot/buildEnv.js +1 -1
- package/esm/boot/perStartRum.js +3 -0
- package/esm/boot/perStartRum.js.map +1 -1
- package/esm/boot/recorderApi.js +72 -56
- package/esm/boot/recorderApi.js.map +1 -1
- package/esm/boot/rumPublicApi.js +36 -4
- package/esm/boot/rumPublicApi.js.map +1 -1
- package/esm/boot/startRecording.js +4 -4
- package/esm/boot/startRecording.js.map +1 -1
- package/esm/constants.js +1 -8
- package/esm/constants.js.map +1 -1
- package/esm/domain/assembly.js +15 -2
- package/esm/domain/assembly.js.map +1 -1
- package/esm/domain/configuration.js +62 -1
- package/esm/domain/configuration.js.map +1 -1
- package/esm/domain/deflate/deflateWorker.js +1 -1
- package/esm/domain/encoderStreamId.js +2 -1
- package/esm/domain/encoderStreamId.js.map +1 -1
- package/esm/domain/replay/record/canvasEncodeWorker.js +1 -1
- package/esm/domain/replay/record/record.js +1 -2
- package/esm/domain/replay/record/record.js.map +1 -1
- package/esm/domain/replay/record/serializationUtils.js +8 -15
- package/esm/domain/replay/record/serializationUtils.js.map +1 -1
- package/esm/domain/replay/record/serialize.js +13 -5
- package/esm/domain/replay/record/serialize.js.map +1 -1
- package/esm/domain/requestCollection.js +4 -2
- package/esm/domain/requestCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/error/errorCollection.js +6 -8
- package/esm/domain/rumEventsCollection/error/errorCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/resourceCollection.js +5 -0
- package/esm/domain/rumEventsCollection/resource/resourceCollection.js.map +1 -1
- package/esm/domain/rumSessionManager.js +3 -3
- package/esm/domain/rumSessionManager.js.map +1 -1
- package/esm/domain/tracing/tracer.js +6 -2
- package/esm/domain/tracing/tracer.js.map +1 -1
- package/esm/domain/visitorId/index.js +406 -0
- package/esm/domain/visitorId/index.js.map +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/transport/startRumBatch.js +45 -4
- package/esm/transport/startRumBatch.js.map +1 -1
- package/package.json +4 -4
- package/src/boot/perStartRum.js +4 -0
- package/src/boot/recorderApi.js +73 -59
- package/src/boot/rumPublicApi.js +38 -4
- package/src/boot/startRecording.js +7 -3
- package/src/constants.js +1 -8
- package/src/domain/assembly.js +28 -2
- package/src/domain/configuration.js +154 -0
- package/src/domain/encoderStreamId.js +2 -2
- package/src/domain/replay/record/record.js +1 -2
- package/src/domain/replay/record/serializationUtils.js +10 -24
- package/src/domain/replay/record/serialize.js +25 -5
- package/src/domain/requestCollection.js +4 -1
- package/src/domain/rumEventsCollection/error/errorCollection.js +10 -8
- package/src/domain/rumEventsCollection/resource/resourceCollection.js +3 -0
- package/src/domain/rumSessionManager.js +8 -7
- package/src/domain/tracing/tracer.js +15 -2
- package/src/domain/visitorId/index.js +571 -0
- package/src/index.js +1 -0
- package/src/transport/startRumBatch.js +61 -3
- package/types/index.d.ts +23 -1
package/types/index.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
RumInitConfiguration,
|
|
3
|
+
RumLegacyInitConfiguration,
|
|
3
4
|
RumSiteInitConfiguration,
|
|
4
5
|
Context,
|
|
5
6
|
User
|
|
6
7
|
} from '@cloudcare/browser-core'
|
|
8
|
+
export { TraceType } from '@cloudcare/browser-core'
|
|
9
|
+
export type {
|
|
10
|
+
Context,
|
|
11
|
+
User,
|
|
12
|
+
RumInitConfiguration,
|
|
13
|
+
RumLegacyInitConfiguration,
|
|
14
|
+
RumSiteInitConfiguration,
|
|
15
|
+
MatchOption,
|
|
16
|
+
OriginMatchOption,
|
|
17
|
+
TraceTypeValue,
|
|
18
|
+
TracingOption
|
|
19
|
+
} from '@cloudcare/browser-core'
|
|
7
20
|
export interface InternalContext {
|
|
8
21
|
application: {
|
|
9
22
|
id: string
|
|
@@ -39,7 +52,8 @@ export interface StartSessionOptions {
|
|
|
39
52
|
export interface StartSessionReplayRecordingOptions {
|
|
40
53
|
/**
|
|
41
54
|
* Forces the current session to be tracked, assigns a session ID when
|
|
42
|
-
* necessary, and enables Session Replay recording.
|
|
55
|
+
* necessary, and enables Session Replay recording without waiting for an error.
|
|
56
|
+
* An existing error-only replay buffer is also released.
|
|
43
57
|
*/
|
|
44
58
|
force?: boolean
|
|
45
59
|
}
|
|
@@ -227,6 +241,7 @@ export interface RumPlugin {
|
|
|
227
241
|
|
|
228
242
|
export type RumPluginInitConfiguration = (
|
|
229
243
|
| RumInitConfiguration
|
|
244
|
+
| RumLegacyInitConfiguration
|
|
230
245
|
| RumSiteInitConfiguration
|
|
231
246
|
) & {
|
|
232
247
|
plugins?: RumPlugin[] | undefined
|
|
@@ -246,6 +261,8 @@ export declare const datafluxRum: {
|
|
|
246
261
|
getGlobalContext: () => Context
|
|
247
262
|
setGlobalContext: (context: any) => void
|
|
248
263
|
clearGlobalContext: () => void
|
|
264
|
+
/** Rotates the Web-generated Visitor ID immediately. No-op while an allowed native bridge provides a valid Visitor ID; the App owns its rotation. */
|
|
265
|
+
resetVisitorId: () => void
|
|
249
266
|
getInternalContext: (
|
|
250
267
|
startTime?: number | undefined
|
|
251
268
|
) => InternalContext | undefined
|
|
@@ -271,6 +288,11 @@ export declare const datafluxRum: {
|
|
|
271
288
|
clearUser: () => void
|
|
272
289
|
stopSession: () => void
|
|
273
290
|
startSession: (options?: StartSessionOptions) => void
|
|
291
|
+
/**
|
|
292
|
+
* Forces the current session to be tracked without waiting for an error.
|
|
293
|
+
* Assigns an ID if needed and releases any existing error-only replay buffer.
|
|
294
|
+
* To start recording, call startSessionReplayRecording({ force: true }).
|
|
295
|
+
*/
|
|
274
296
|
setForcedSession: () => void
|
|
275
297
|
startSessionReplayRecording: (
|
|
276
298
|
options?: StartSessionReplayRecordingOptions
|