@newrelic/browser-agent 1.271.0 → 1.273.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/CHANGELOG.md +15 -0
- package/dist/cjs/common/aggregate/aggregator.js +23 -30
- package/dist/cjs/common/aggregate/event-aggregator.js +84 -0
- package/dist/cjs/common/config/init.js +8 -4
- package/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/common/harvest/harvest-scheduler.js +1 -1
- package/dist/cjs/common/harvest/harvest.js +1 -5
- package/dist/cjs/common/harvest/types.js +0 -1
- package/dist/cjs/features/ajax/aggregate/index.js +52 -62
- package/dist/cjs/features/generic_events/aggregate/index.js +57 -36
- package/dist/cjs/features/generic_events/instrument/index.js +1 -1
- package/dist/cjs/features/jserrors/aggregate/index.js +23 -69
- package/dist/cjs/features/logging/aggregate/index.js +52 -59
- package/dist/cjs/features/metrics/aggregate/index.js +8 -5
- package/dist/cjs/features/page_view_timing/aggregate/index.js +8 -25
- package/dist/cjs/features/session_replay/aggregate/index.js +11 -10
- package/dist/cjs/features/session_replay/shared/recorder-events.js +2 -2
- package/dist/cjs/features/session_trace/aggregate/index.js +77 -88
- package/dist/cjs/features/session_trace/aggregate/trace/storage.js +22 -13
- package/dist/cjs/features/soft_navigations/aggregate/index.js +10 -20
- package/dist/cjs/features/soft_navigations/instrument/index.js +5 -9
- package/dist/cjs/features/spa/aggregate/index.js +10 -26
- package/dist/cjs/features/utils/aggregate-base.js +37 -0
- package/dist/cjs/features/utils/event-buffer.js +36 -87
- package/dist/cjs/features/utils/instrument-base.js +3 -3
- package/dist/cjs/loaders/features/features.js +13 -1
- package/dist/esm/common/aggregate/aggregator.js +23 -30
- package/dist/esm/common/aggregate/event-aggregator.js +78 -0
- package/dist/esm/common/config/init.js +8 -4
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/common/harvest/harvest-scheduler.js +1 -1
- package/dist/esm/common/harvest/harvest.js +1 -5
- package/dist/esm/common/harvest/types.js +0 -1
- package/dist/esm/features/ajax/aggregate/index.js +53 -62
- package/dist/esm/features/generic_events/aggregate/index.js +57 -36
- package/dist/esm/features/generic_events/instrument/index.js +1 -1
- package/dist/esm/features/jserrors/aggregate/index.js +24 -70
- package/dist/esm/features/logging/aggregate/index.js +52 -59
- package/dist/esm/features/metrics/aggregate/index.js +8 -5
- package/dist/esm/features/page_view_timing/aggregate/index.js +9 -26
- package/dist/esm/features/session_replay/aggregate/index.js +12 -11
- package/dist/esm/features/session_replay/shared/recorder-events.js +2 -2
- package/dist/esm/features/session_trace/aggregate/index.js +77 -88
- package/dist/esm/features/session_trace/aggregate/trace/storage.js +22 -13
- package/dist/esm/features/soft_navigations/aggregate/index.js +11 -21
- package/dist/esm/features/soft_navigations/instrument/index.js +5 -9
- package/dist/esm/features/spa/aggregate/index.js +11 -27
- package/dist/esm/features/utils/aggregate-base.js +37 -0
- package/dist/esm/features/utils/event-buffer.js +36 -88
- package/dist/esm/features/utils/instrument-base.js +3 -3
- package/dist/esm/loaders/features/features.js +12 -0
- package/dist/types/common/aggregate/aggregator.d.ts +4 -6
- package/dist/types/common/aggregate/aggregator.d.ts.map +1 -1
- package/dist/types/common/aggregate/event-aggregator.d.ts +26 -0
- package/dist/types/common/aggregate/event-aggregator.d.ts.map +1 -0
- package/dist/types/common/config/init.d.ts.map +1 -1
- package/dist/types/common/harvest/harvest.d.ts.map +1 -1
- package/dist/types/common/harvest/types.d.ts +1 -4
- package/dist/types/common/harvest/types.d.ts.map +1 -1
- package/dist/types/features/ajax/aggregate/index.d.ts +2 -10
- package/dist/types/features/ajax/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/generic_events/aggregate/index.d.ts +5 -11
- package/dist/types/features/generic_events/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/generic_events/instrument/index.d.ts.map +1 -1
- package/dist/types/features/jserrors/aggregate/index.d.ts +4 -7
- package/dist/types/features/jserrors/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/logging/aggregate/index.d.ts +10 -28
- package/dist/types/features/logging/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/metrics/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/page_view_timing/aggregate/index.d.ts +1 -9
- package/dist/types/features/page_view_timing/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_replay/aggregate/index.d.ts +3 -4
- package/dist/types/features/session_replay/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_replay/shared/recorder-events.d.ts +1 -1
- package/dist/types/features/session_replay/shared/recorder-events.d.ts.map +1 -1
- package/dist/types/features/session_replay/shared/recorder.d.ts +1 -1
- package/dist/types/features/session_trace/aggregate/index.d.ts +17 -19
- package/dist/types/features/session_trace/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_trace/aggregate/trace/storage.d.ts +10 -6
- package/dist/types/features/session_trace/aggregate/trace/storage.d.ts.map +1 -1
- package/dist/types/features/soft_navigations/aggregate/index.d.ts +3 -9
- package/dist/types/features/soft_navigations/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/soft_navigations/instrument/index.d.ts.map +1 -1
- package/dist/types/features/spa/aggregate/index.d.ts +2 -3
- package/dist/types/features/spa/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/utils/aggregate-base.d.ts +14 -0
- package/dist/types/features/utils/aggregate-base.d.ts.map +1 -1
- package/dist/types/features/utils/event-buffer.d.ts +19 -56
- package/dist/types/features/utils/event-buffer.d.ts.map +1 -1
- package/dist/types/loaders/features/features.d.ts +3 -0
- package/dist/types/loaders/features/features.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/common/aggregate/aggregator.js +22 -32
- package/src/common/aggregate/event-aggregator.js +76 -0
- package/src/common/config/init.js +6 -2
- package/src/common/harvest/harvest-scheduler.js +1 -1
- package/src/common/harvest/harvest.js +1 -5
- package/src/common/harvest/types.js +0 -1
- package/src/features/ajax/aggregate/index.js +60 -67
- package/src/features/generic_events/aggregate/index.js +48 -38
- package/src/features/generic_events/instrument/index.js +2 -0
- package/src/features/jserrors/aggregate/index.js +21 -77
- package/src/features/logging/aggregate/index.js +46 -60
- package/src/features/metrics/aggregate/index.js +6 -4
- package/src/features/page_view_timing/aggregate/index.js +9 -30
- package/src/features/session_replay/aggregate/index.js +10 -14
- package/src/features/session_replay/shared/recorder-events.js +2 -2
- package/src/features/session_trace/aggregate/index.js +64 -73
- package/src/features/session_trace/aggregate/trace/storage.js +25 -14
- package/src/features/soft_navigations/aggregate/index.js +11 -22
- package/src/features/soft_navigations/instrument/index.js +6 -9
- package/src/features/spa/aggregate/index.js +12 -27
- package/src/features/utils/aggregate-base.js +39 -0
- package/src/features/utils/event-buffer.js +36 -83
- package/src/features/utils/instrument-base.js +3 -3
- package/src/loaders/features/features.js +13 -0
- package/dist/cjs/features/ajax/aggregate/chunk.js +0 -51
- package/dist/esm/features/ajax/aggregate/chunk.js +0 -44
- package/dist/types/features/ajax/aggregate/chunk.d.ts +0 -8
- package/dist/types/features/ajax/aggregate/chunk.d.ts.map +0 -1
- package/src/features/ajax/aggregate/chunk.js +0 -52
|
@@ -1,127 +1,75 @@
|
|
|
1
1
|
import { stringify } from '../../common/util/stringify';
|
|
2
2
|
import { MAX_PAYLOAD_SIZE } from '../../common/constants/agent-constants';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A container that keeps an event buffer and size with helper methods
|
|
6
|
-
* @typedef {Object} EventBuffer
|
|
7
|
-
* @property {number} size
|
|
8
|
-
* @property {*[]} buffer
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* A container that holds, evaluates, and merges event objects for harvesting
|
|
13
|
-
*/
|
|
14
3
|
export class EventBuffer {
|
|
15
|
-
/** @type {Object[]} */
|
|
16
4
|
#buffer = [];
|
|
17
|
-
|
|
18
|
-
#
|
|
19
|
-
|
|
20
|
-
#held;
|
|
5
|
+
#rawBytes = 0;
|
|
6
|
+
#bufferBackup;
|
|
7
|
+
#rawBytesBackup;
|
|
21
8
|
|
|
22
9
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param {number=} maxPayloadSize
|
|
10
|
+
* @param {number} maxPayloadSize
|
|
25
11
|
*/
|
|
26
12
|
constructor(maxPayloadSize = MAX_PAYLOAD_SIZE) {
|
|
27
13
|
this.maxPayloadSize = maxPayloadSize;
|
|
28
14
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* buffer is read only, use the helper methods to add or clear buffer data
|
|
32
|
-
*/
|
|
33
|
-
get buffer() {
|
|
34
|
-
return this.#buffer;
|
|
15
|
+
isEmpty() {
|
|
16
|
+
return this.#buffer.length === 0;
|
|
35
17
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* bytes is read only, use the helper methods to add or clear buffer data
|
|
39
|
-
*/
|
|
40
|
-
get bytes() {
|
|
41
|
-
return this.#bytes;
|
|
18
|
+
get() {
|
|
19
|
+
return this.#buffer;
|
|
42
20
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* held is another event buffer
|
|
46
|
-
*/
|
|
47
|
-
get held() {
|
|
48
|
-
if (!this.#held) this.#held = new EventBuffer(this.maxPayloadSize);
|
|
49
|
-
return this.#held;
|
|
21
|
+
byteSize() {
|
|
22
|
+
return this.#rawBytes;
|
|
50
23
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
* Returns a boolean indicating whether the current size and buffer contain valid data
|
|
54
|
-
* @returns {boolean}
|
|
55
|
-
*/
|
|
56
|
-
get hasData() {
|
|
57
|
-
return this.buffer.length > 0 && this.bytes > 0;
|
|
24
|
+
wouldExceedMaxSize(incomingSize) {
|
|
25
|
+
return this.#rawBytes + incomingSize > this.maxPayloadSize;
|
|
58
26
|
}
|
|
59
27
|
|
|
60
28
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* @
|
|
64
|
-
* @returns {EventBuffer} returns the event buffer for chaining
|
|
29
|
+
* Add feature-processed event to our buffer. If this event would cause our total raw size to exceed the set max payload size, it is dropped.
|
|
30
|
+
* @param {any} event - any primitive type or object
|
|
31
|
+
* @returns {Boolean} true if successfully added; false otherwise
|
|
65
32
|
*/
|
|
66
33
|
add(event) {
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
34
|
+
const addSize = stringify(event)?.length || 0; // (estimate) # of bytes a directly stringified event it would take to send
|
|
35
|
+
if (this.#rawBytes + addSize > this.maxPayloadSize) return false;
|
|
69
36
|
this.#buffer.push(event);
|
|
70
|
-
this.#
|
|
71
|
-
return
|
|
37
|
+
this.#rawBytes += addSize;
|
|
38
|
+
return true;
|
|
72
39
|
}
|
|
73
40
|
|
|
74
41
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @returns {EventBuffer}
|
|
42
|
+
* Wipes the main buffer
|
|
77
43
|
*/
|
|
78
44
|
clear() {
|
|
79
|
-
this.#bytes = 0;
|
|
80
45
|
this.#buffer = [];
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Hold the buffer data in a new (child) EventBuffer (.held) to unblock the main buffer.
|
|
86
|
-
* This action clears the main buffer
|
|
87
|
-
* @returns {EventBuffer}
|
|
88
|
-
*/
|
|
89
|
-
hold() {
|
|
90
|
-
this.held.merge(this);
|
|
91
|
-
this.clear();
|
|
92
|
-
return this;
|
|
46
|
+
this.#rawBytes = 0;
|
|
93
47
|
}
|
|
94
48
|
|
|
95
49
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* @returns {EventBuffer}
|
|
50
|
+
* Backup the buffered data and clear the main buffer
|
|
51
|
+
* @returns {Array} the events being backed up
|
|
99
52
|
*/
|
|
100
|
-
|
|
101
|
-
this
|
|
102
|
-
this
|
|
103
|
-
return this;
|
|
53
|
+
save() {
|
|
54
|
+
this.#bufferBackup = this.#buffer;
|
|
55
|
+
this.#rawBytesBackup = this.#rawBytes;
|
|
104
56
|
}
|
|
105
57
|
|
|
106
58
|
/**
|
|
107
|
-
*
|
|
108
|
-
* @param {EventBuffer} events an EventBuffer intended to merge with this EventBuffer
|
|
109
|
-
* @param {boolean} prepend if true, the supplied events will be prepended before the events of this class
|
|
110
|
-
* @returns {EventBuffer} returns the event buffer for chaining
|
|
59
|
+
* Wipes the backup buffer
|
|
111
60
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
this.#
|
|
115
|
-
this.#bytes += eventBuffer.#bytes;
|
|
116
|
-
return this;
|
|
61
|
+
clearSave() {
|
|
62
|
+
this.#bufferBackup = undefined;
|
|
63
|
+
this.#rawBytesBackup = undefined;
|
|
117
64
|
}
|
|
118
65
|
|
|
119
66
|
/**
|
|
120
|
-
*
|
|
121
|
-
* @param {number} size
|
|
122
|
-
* @returns {boolean}
|
|
67
|
+
* Prepend the backup buffer back into the main buffer
|
|
123
68
|
*/
|
|
124
|
-
|
|
125
|
-
|
|
69
|
+
reloadSave() {
|
|
70
|
+
if (!this.#bufferBackup) return;
|
|
71
|
+
if (this.#rawBytesBackup + this.#rawBytes > this.maxPayloadSize) return;
|
|
72
|
+
this.#buffer = [...this.#bufferBackup, ...this.#buffer];
|
|
73
|
+
this.#rawBytes = this.#rawBytesBackup + this.#rawBytes;
|
|
126
74
|
}
|
|
127
75
|
}
|
|
@@ -97,11 +97,11 @@ export class InstrumentBase extends FeatureBase {
|
|
|
97
97
|
try {
|
|
98
98
|
// Create a single Aggregator for this agent if DNE yet; to be used by jserror endpoint features.
|
|
99
99
|
if (!agentRef.sharedAggregator) {
|
|
100
|
-
agentRef.sharedAggregator = import(/* webpackChunkName: "shared-aggregator" */'../../common/aggregate/aggregator');
|
|
100
|
+
agentRef.sharedAggregator = import(/* webpackChunkName: "shared-aggregator" */'../../common/aggregate/event-aggregator');
|
|
101
101
|
const {
|
|
102
|
-
|
|
102
|
+
EventAggregator
|
|
103
103
|
} = await agentRef.sharedAggregator;
|
|
104
|
-
agentRef.sharedAggregator = new
|
|
104
|
+
agentRef.sharedAggregator = new EventAggregator();
|
|
105
105
|
} else await agentRef.sharedAggregator; // if another feature is already importing the aggregator, wait for it to finish
|
|
106
106
|
|
|
107
107
|
if (!this.#shouldImportAgg(this.featureName, session)) {
|
|
@@ -32,4 +32,16 @@ export const featurePriority = {
|
|
|
32
32
|
[FEATURE_NAMES.sessionReplay]: 9,
|
|
33
33
|
[FEATURE_NAMES.logging]: 10,
|
|
34
34
|
[FEATURE_NAMES.genericEvents]: 11
|
|
35
|
+
};
|
|
36
|
+
export const FEATURE_TO_ENDPOINT = {
|
|
37
|
+
[FEATURE_NAMES.pageViewTiming]: 'events',
|
|
38
|
+
[FEATURE_NAMES.ajax]: 'events',
|
|
39
|
+
[FEATURE_NAMES.spa]: 'events',
|
|
40
|
+
[FEATURE_NAMES.softNav]: 'events',
|
|
41
|
+
[FEATURE_NAMES.metrics]: 'jserrors',
|
|
42
|
+
[FEATURE_NAMES.jserrors]: 'jserrors',
|
|
43
|
+
[FEATURE_NAMES.sessionTrace]: 'browser/blobs',
|
|
44
|
+
[FEATURE_NAMES.sessionReplay]: 'browser/blobs',
|
|
45
|
+
[FEATURE_NAMES.logging]: 'browser/logs',
|
|
46
|
+
[FEATURE_NAMES.genericEvents]: 'ins'
|
|
35
47
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
export class Aggregator
|
|
1
|
+
export class Aggregator {
|
|
2
2
|
aggregatedData: {};
|
|
3
3
|
store(type: any, name: any, params: any, newMetrics: any, customParams: any): any;
|
|
4
|
-
merge(type: any, name: any, metrics: any, params: any, customParams: any): void;
|
|
4
|
+
merge(type: any, name: any, metrics: any, params: any, customParams: any, overwriteParams?: boolean): void;
|
|
5
5
|
storeMetric(type: any, name: any, params: any, value: any): any;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
take(types: any): {} | null;
|
|
6
|
+
take(types: any, deleteWhenRetrieved?: boolean): {} | null;
|
|
7
|
+
#private;
|
|
9
8
|
}
|
|
10
|
-
import { SharedContext } from '../context/shared-context';
|
|
11
9
|
//# sourceMappingURL=aggregator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregator.d.ts","sourceRoot":"","sources":["../../../../src/common/aggregate/aggregator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aggregator.d.ts","sourceRoot":"","sources":["../../../../src/common/aggregate/aggregator.js"],"names":[],"mappings":"AAIA;IAEI,mBAAwB;IAO1B,kFAIC;IAED,2GA2BC;IAED,gEAIC;IAGD,2DAYC;;CAaF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An extension of the Aggregator class that provides an interface similar to that of EventBuffer class.
|
|
3
|
+
* This typecasting allow features that uses Aggregator as their event handler to share the same AggregateBase.events utilization by those features.
|
|
4
|
+
*/
|
|
5
|
+
export class EventAggregator {
|
|
6
|
+
isEmpty({ aggregatorTypes }: {
|
|
7
|
+
aggregatorTypes: any;
|
|
8
|
+
}): any;
|
|
9
|
+
add(type: any, name: any, params: any, newMetrics: any, customParams: any): boolean;
|
|
10
|
+
addMetric(type: any, name: any, params: any, value: any): boolean;
|
|
11
|
+
save({ aggregatorTypes }: {
|
|
12
|
+
aggregatorTypes: any;
|
|
13
|
+
}): void;
|
|
14
|
+
get(opts: any): {} | null;
|
|
15
|
+
clear({ aggregatorTypes }?: {
|
|
16
|
+
aggregatorTypes: any;
|
|
17
|
+
}): void;
|
|
18
|
+
reloadSave({ aggregatorTypes }: {
|
|
19
|
+
aggregatorTypes: any;
|
|
20
|
+
}): void;
|
|
21
|
+
clearSave({ aggregatorTypes }: {
|
|
22
|
+
aggregatorTypes: any;
|
|
23
|
+
}): void;
|
|
24
|
+
#private;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=event-aggregator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../../src/common/aggregate/event-aggregator.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IAIE;;YAGC;IAED,oFAIC;IAED,kEAGC;IAED;;aAgBC;IAED,0BAGC;IAED;;aAMC;IAED;;aAYC;IAED;;aAGC;;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/common/config/init.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/common/config/init.js"],"names":[],"mappings":"AAsHA,+CAIC;AAED,0DAKC;AAED,+DAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harvest.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/harvest.js"],"names":[],"mappings":"AAsBA;;;;;;GAMG;AACH;IAII,0BAA2H;IAC3H,gBAA2E;IAE3E,YAAiB;IAGnB;;;;;OAKG;IACH,aAFW,eAAe,WAWzB;IAED;;;OAGG;IACH,YAFW,eAAe,WAMzB;IAED;;;;;;OAMG;IACH,gGAJW,eAAe,GACb,OAAO,
|
|
1
|
+
{"version":3,"file":"harvest.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/harvest.js"],"names":[],"mappings":"AAsBA;;;;;;GAMG;AACH;IAII,0BAA2H;IAC3H,gBAA2E;IAE3E,YAAiB;IAGnB;;;;;OAKG;IACH,aAFW,eAAe,WAWzB;IAED;;;OAGG;IACH,YAFW,eAAe,WAMzB;IAED;;;;;;OAMG;IACH,gGAJW,eAAe,GACb,OAAO,CA+EnB;IAGD,gDAqBC;IAED;;;;;;;OAOG;IACH,wBALW,yBAAyB,WACzB,6BAA6B,GAE3B,cAAc,CA2B1B;IAED;;;;;;;OAOG;IACH,uBAHW,cAAc,GACZ,cAAc,CAuB1B;IAED;;;;;OAKG;IACH,aAHW,yBAAyB,YACzB,sBAAsB,QAQhC;CACF;8BAvOY,OAAO,YAAY,EAAE,eAAe;wCACpC,OAAO,YAAY,EAAE,yBAAyB;6BAC9C,OAAO,YAAY,EAAE,cAAc;qCACnC,OAAO,YAAY,EAAE,sBAAsB;4CAC3C,OAAO,YAAY,EAAE,6BAA6B;8BAbjC,2BAA2B"}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* @typedef {object} HarvestPayload
|
|
11
11
|
* @property {object} qs Map of values that should be sent as part of the request query string.
|
|
12
12
|
* @property {object} body Map of values that should be sent as the body of the request.
|
|
13
|
-
* @property {string} body.e Special case of body used for browser interactions.
|
|
14
13
|
*/
|
|
15
14
|
/**
|
|
16
15
|
* @typedef {object} FeatureHarvestCallbackOptions Options for aggregating data for harvesting.
|
|
@@ -47,9 +46,7 @@ export type HarvestPayload = {
|
|
|
47
46
|
/**
|
|
48
47
|
* Map of values that should be sent as the body of the request.
|
|
49
48
|
*/
|
|
50
|
-
body:
|
|
51
|
-
e: string;
|
|
52
|
-
};
|
|
49
|
+
body: object;
|
|
53
50
|
};
|
|
54
51
|
/**
|
|
55
52
|
* Options for aggregating data for harvesting.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/types.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/types.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AAEH;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;;;GAcG;AAGH,wBAAwB;wCAtCX,KAAK,GAAC,UAAU,GAAC,QAAQ,GAAC,KAAK,GAAC,WAAW,GAAC,MAAM;;;;;QAKjD,MAAM;;;;UACN,MAAM;;;;;;;;;;WAKN,OAAO;;+CAMV,6BAA6B,KAC3B,cAAc;;;;;cAKb,yBAAyB;;;;aACzB,cAAc;;;;UAEzB;QAAyB,YAAY,EAA1B,OAAO;QACO,MAAM,EAApB,OAAO;QACO,aAAa,EAA3B,OAAO;QACO,KAAK,EAAnB,OAAO;KAElB;;;;kBAAW,OAAO,wBAAwB,EAAE,cAAc;;;;eAC/C,MAAM;;;;SACN,OAAO;;;;uBACP,OAAO"}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
export class Aggregate extends AggregateBase {
|
|
2
2
|
static featureName: string;
|
|
3
3
|
constructor(agentRef: any);
|
|
4
|
-
|
|
5
|
-
spaAjaxEvents: {};
|
|
4
|
+
underSpaEvents: {};
|
|
6
5
|
storeXhr(params: any, metrics: any, startTime: any, endTime: any, type: any, ctx: any): void;
|
|
7
|
-
|
|
8
|
-
body: {
|
|
9
|
-
e: any;
|
|
10
|
-
};
|
|
11
|
-
}[] | null;
|
|
12
|
-
onEventsHarvestFinished(result: any): void;
|
|
13
|
-
#private;
|
|
6
|
+
serializer(eventBuffer: any): string;
|
|
14
7
|
}
|
|
15
8
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
16
|
-
import { EventBuffer } from '../../utils/event-buffer';
|
|
17
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAgBA;IACE,2BAAiC;IAEjC,2BAkCC;IA5BC,mBAAwB;IA8B1B,6FA0EC;IAED,qCA4CC;CACF;8BApK6B,4BAA4B"}
|
|
@@ -4,9 +4,7 @@ export class Aggregate extends AggregateBase {
|
|
|
4
4
|
eventsPerHarvest: number;
|
|
5
5
|
harvestTimeSeconds: any;
|
|
6
6
|
referrerUrl: string | undefined;
|
|
7
|
-
events: EventBuffer;
|
|
8
7
|
userActionAggregator: UserActionsAggregator;
|
|
9
|
-
addUserAction: (aggregatedUserAction: any) => void;
|
|
10
8
|
harvestScheduler: HarvestScheduler;
|
|
11
9
|
/** Some keys are set by the query params or request headers sent with the harvest and override the body values, so check those before adding new standard body values...
|
|
12
10
|
* see harvest.js#baseQueryString for more info on the query params
|
|
@@ -21,18 +19,14 @@ export class Aggregate extends AggregateBase {
|
|
|
21
19
|
* @returns void
|
|
22
20
|
*/
|
|
23
21
|
addEvent(obj?: object | undefined): void;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
body: Object;
|
|
30
|
-
} | undefined;
|
|
31
|
-
onHarvestFinished(result: any): void;
|
|
22
|
+
serializer(eventBuffer: any): Object;
|
|
23
|
+
queryStringsBuilder(): {
|
|
24
|
+
ua: any;
|
|
25
|
+
at: any;
|
|
26
|
+
};
|
|
32
27
|
checkEventLimits(): void;
|
|
33
28
|
}
|
|
34
29
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
35
|
-
import { EventBuffer } from '../../utils/event-buffer';
|
|
36
30
|
import { UserActionsAggregator } from './user-actions/user-actions-aggregator';
|
|
37
31
|
import { HarvestScheduler } from '../../../common/harvest/harvest-scheduler';
|
|
38
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/aggregate/index.js"],"names":[],"mappings":"AAoBA;IACE,2BAAiC;IACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/aggregate/index.js"],"names":[],"mappings":"AAoBA;IACE,2BAAiC;IACjC,2BAiHC;IA9GC,yBAA4B;IAC5B,wBAAyE;IAEzE,gCAAkG;IA4B9F,4CAAuD;IAsEzD,mCAGQ;IASZ;;;;;;;;;;;OAWG;IACH,eAHW,MAAM,YAAC,QAmCjB;IAED,qCAEC;IAED;;;MAEC;IAED,yBAMC;CACF;8BA9L6B,4BAA4B;sCAQpB,wCAAwC;iCAZ7C,2CAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/instrument/index.js"],"names":[],"mappings":"AAUA;IACE,2BAAiC;IACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/instrument/index.js"],"names":[],"mappings":"AAUA;IACE,2BAAiC;IACjC,2CAuBC;CACF;AAED,8CAAuC;+BA/BR,6BAA6B"}
|
|
@@ -8,15 +8,12 @@ export class Aggregate extends AggregateBase {
|
|
|
8
8
|
observedAt: {};
|
|
9
9
|
pageviewReported: {};
|
|
10
10
|
bufferedErrorsUnderSpa: {};
|
|
11
|
-
currentBody: Object | null | undefined;
|
|
12
11
|
errorOnPage: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
serializer(aggregatorTypeToBucketsMap: any): Object;
|
|
13
|
+
queryStringsBuilder(aggregatorTakeReturnedData: any): {
|
|
14
|
+
ri: string;
|
|
15
|
+
pve: string;
|
|
16
16
|
};
|
|
17
|
-
onHarvestFinished(result: any): void;
|
|
18
|
-
nameHash(params: any): number;
|
|
19
|
-
getBucketName(objType: any, params: any, customParams: any): string;
|
|
20
17
|
/**
|
|
21
18
|
* Builds a standardized stack trace string from the frames in the given `stackInfo` object, with each frame separated
|
|
22
19
|
* by a newline character. Lines take the form `<functionName>@<url>:<lineNumber>`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/index.js"],"names":[],"mappings":"AAwBA;;GAEG;AAEH;IACE,2BAAiC;IACjC,2BAkCC;IA/BC,kBAAuB;IACvB,eAAoB;IACpB,qBAA0B;IAC1B,2BAAgC;IAChC,qBAAwB;IA6B1B,oDAEC;IAED;;;MAcC;IAED;;;;;;OAMG;IACH,qCAHW,SAAS,GACP,MAAM,CAgBlB;IAED;;;;;;;;OAQG;IACH,gBAPW,KAAK,GAAC,aAAa,QACnB,MAAM,aACN,OAAO,YAAC,qBACR,MAAM,YAAC,cACP,OAAO,YAAC,QAqGlB;IA4BD,yDA6BC;IAED,qFAOC;;CACF;wBAlQY,OAAO,0BAA0B,EAAE,SAAS;8BAP3B,4BAA4B"}
|
|
@@ -1,39 +1,21 @@
|
|
|
1
1
|
export class Aggregate extends AggregateBase {
|
|
2
2
|
static featureName: string;
|
|
3
3
|
constructor(agentRef: any);
|
|
4
|
-
/** held logs before sending */
|
|
5
|
-
bufferedLogs: EventBuffer;
|
|
6
4
|
harvestTimeSeconds: any;
|
|
7
5
|
scheduler: HarvestScheduler;
|
|
8
6
|
handleLog(timestamp: any, message: any, attributes?: {}, level?: string): void;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
serializer(eventBuffer: any): {
|
|
8
|
+
common: {
|
|
9
|
+
/** Attributes in the `common` section are added to `all` logs generated in the payload */
|
|
10
|
+
attributes: any;
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'instrumentation.name': any;
|
|
20
|
-
'entity.guid': any;
|
|
21
|
-
session: any;
|
|
22
|
-
hasReplay: boolean;
|
|
23
|
-
hasTrace: boolean;
|
|
24
|
-
ptid: any;
|
|
25
|
-
appId: any;
|
|
26
|
-
standalone: boolean;
|
|
27
|
-
agentVersion: any;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
/** logs section contains individual unique log entries */
|
|
31
|
-
logs: Object;
|
|
32
|
-
}[];
|
|
33
|
-
} | undefined;
|
|
34
|
-
onHarvestFinished(result: any): void;
|
|
12
|
+
/** logs section contains individual unique log entries */
|
|
13
|
+
logs: Object;
|
|
14
|
+
}[];
|
|
15
|
+
queryStringsBuilder(): {
|
|
16
|
+
browser_monitoring_key: any;
|
|
17
|
+
};
|
|
35
18
|
}
|
|
36
19
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
37
|
-
import { EventBuffer } from '../../utils/event-buffer';
|
|
38
20
|
import { HarvestScheduler } from '../../../common/harvest/harvest-scheduler';
|
|
39
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IACjC,2BAiBC;IAfC,wBAAkE;IAGhE,4BAKQ;IASZ,+EAgDC;IAED;;YAIM,0FAA0F;;;QAkB5F,0DAA0D;;QAM7D;IAED;;MAEC;CACF;8BAhH6B,4BAA4B;iCAJzB,2CAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IACjC,2BAuBC;IAED,wDAKC;IAED,iDAKC;IAED,qBAqEC;IAED,0BAOC;IAED,eAkCC;IA/BG,mCAAyB;CAgC9B;8BAlK6B,4BAA4B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export class Aggregate extends AggregateBase {
|
|
2
2
|
static featureName: string;
|
|
3
3
|
constructor(agentRef: any);
|
|
4
|
-
timings: EventBuffer;
|
|
5
4
|
curSessEndRecorded: boolean;
|
|
6
5
|
/**
|
|
7
6
|
* Add the time of _document visibilitychange to hidden_ to the next PVT harvest == NRDB pageHide attr.
|
|
@@ -9,16 +8,9 @@ export class Aggregate extends AggregateBase {
|
|
|
9
8
|
*/
|
|
10
9
|
endCurrentSession(timestamp: number): void;
|
|
11
10
|
addTiming(name: any, value: any, attrs: any): void;
|
|
12
|
-
onHarvestFinished(result: any): void;
|
|
13
11
|
appendGlobalCustomAttributes(timing: any): void;
|
|
14
|
-
|
|
15
|
-
body: {
|
|
16
|
-
e: string;
|
|
17
|
-
};
|
|
18
|
-
} | undefined;
|
|
19
|
-
getPayload(data: any): string;
|
|
12
|
+
serializer(eventBuffer: any): string;
|
|
20
13
|
#private;
|
|
21
14
|
}
|
|
22
15
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
23
|
-
import { EventBuffer } from '../../utils/event-buffer';
|
|
24
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"AAsBA;IACE,2BAAiC;IAMjC,2BAsCC;IApCC,4BAA+B;IAsCjC;;;OAGG;IACH,6BAFW,MAAM,QAOhB;IAED,mDAuBC;IAED,gDAUC;IAGD,qCAuBC;;CACF;8BAnI6B,4BAA4B"}
|
|
@@ -16,6 +16,7 @@ export class Aggregate extends AggregateBase {
|
|
|
16
16
|
recorder: any;
|
|
17
17
|
errorNoticed: any;
|
|
18
18
|
scheduler: HarvestScheduler;
|
|
19
|
+
replayIsActive(): boolean;
|
|
19
20
|
handleError(e: any): void;
|
|
20
21
|
switchToFull(): void;
|
|
21
22
|
/**
|
|
@@ -28,9 +29,7 @@ export class Aggregate extends AggregateBase {
|
|
|
28
29
|
*/
|
|
29
30
|
initializeRecording(srMode: any, ignoreSession: boolean): void;
|
|
30
31
|
prepUtils(): Promise<void>;
|
|
31
|
-
|
|
32
|
-
opts: any;
|
|
33
|
-
}): {
|
|
32
|
+
makeHarvestPayload(shouldRetryOnFail: any, opts: any): {
|
|
34
33
|
qs: {
|
|
35
34
|
browser_monitoring_key: any;
|
|
36
35
|
type: string;
|
|
@@ -53,7 +52,7 @@ export class Aggregate extends AggregateBase {
|
|
|
53
52
|
};
|
|
54
53
|
body: any;
|
|
55
54
|
};
|
|
56
|
-
|
|
55
|
+
postHarvestCleanup(result: any): void;
|
|
57
56
|
/**
|
|
58
57
|
* Forces the agent into OFF mode so that changing tabs or navigating
|
|
59
58
|
* does not restart the recording. This is used when the customer calls
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"AA4BA;IACE,2BAAiC;IACjC,aAAe;IAKb,8GAA8G;IAC9G,wBAA+E;IAC/E,iFAAiF;IACjF,qBAAwB;IAGxB,2CAA2C;IAC3C,sDAAwB;IACxB,6CAA6C;IAC7C,gDAAmB;IAEnB,0BAA0B;IAC1B,kBAAqB;IACrB,6CAA6C;IAC7C,gBAA2B;IAE3B,cAA8B;IAC9B,kBAA+C;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"AA4BA;IACE,2BAAiC;IACjC,aAAe;IAKb,8GAA8G;IAC9G,wBAA+E;IAC/E,iFAAiF;IACjF,qBAAwB;IAGxB,2CAA2C;IAC3C,sDAAwB;IACxB,6CAA6C;IAC7C,gDAAmB;IAEnB,0BAA0B;IAC1B,kBAAqB;IACrB,6CAA6C;IAC7C,gBAA2B;IAE3B,cAA8B;IAC9B,kBAA+C;IA2B/C,4BAKQ;IA4CV,0BAEC;IAED,0BAMC;IAED,qBAWC;IAED;;;;;;;OAOG;IACH,gDAHW,OAAO,GACL,IAAI,CA8DhB;IAED,2BASC;IAED;;;;;;;;;;oBAgDC;IAED,sCAIC;IAED;;;;;;;;;;MAuEC;IAED,sCAOC;IAED;;;;OAIG;IACH,mCAKC;IAED,yDAAyD;IACzD,+CAUC;IAED,yCAEC;CACF;8BArY6B,4BAA4B;iCAFzB,2CAA2C"}
|
|
@@ -15,7 +15,7 @@ export class RecorderEvents {
|
|
|
15
15
|
/** Payload metadata -- Denotes whether all stylesheet elements were able to be inlined */
|
|
16
16
|
inlinedAllStylesheets: boolean;
|
|
17
17
|
add(event: any): void;
|
|
18
|
-
get events():
|
|
18
|
+
get events(): any[];
|
|
19
19
|
/** A value which increments with every new mutation node reported. Resets after a harvest is sent */
|
|
20
20
|
get payloadBytesEstimation(): number;
|
|
21
21
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recorder-events.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/shared/recorder-events.js"],"names":[],"mappings":"AAEA;IAGE;;SAEK;IACL,uBAA2B;IAC3B;;;MAGE;IACF,qBAAmB;IACnB,4IAA4I;IAC5I,iBAAe;IACf,+HAA+H;IAC/H,kBAAgB;IAChB,0FAA0F;IAC1F,+BAA4B;IAE5B,sBAEC;IAED,
|
|
1
|
+
{"version":3,"file":"recorder-events.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/shared/recorder-events.js"],"names":[],"mappings":"AAEA;IAGE;;SAEK;IACL,uBAA2B;IAC3B;;;MAGE;IACF,qBAAmB;IACnB,4IAA4I;IAC5I,iBAAe;IACf,+HAA+H;IAC/H,kBAAgB;IAChB,0FAA0F;IAC1F,+BAA4B;IAE5B,sBAEC;IAED,oBAEC;IAED,qGAAqG;IACrG,qCAEC;;CACF"}
|
|
@@ -15,7 +15,7 @@ export class Recorder {
|
|
|
15
15
|
/** The method to stop recording. This defaults to a noop, but is overwritten once the recording library is imported and initialized */
|
|
16
16
|
stopRecording: () => void;
|
|
17
17
|
getEvents(): {
|
|
18
|
-
events:
|
|
18
|
+
events: any[];
|
|
19
19
|
payloadBytesEstimation: number;
|
|
20
20
|
type: string;
|
|
21
21
|
cycleTimestamp: number;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export class Aggregate extends AggregateBase {
|
|
2
2
|
static featureName: string;
|
|
3
3
|
constructor(agentRef: any);
|
|
4
|
-
/** A buffer to hold on to harvested traces in the case that a retry must be made later */
|
|
5
|
-
sentTrace: any[] | null;
|
|
6
4
|
harvestTimeSeconds: any;
|
|
7
5
|
/** Tied to the entitlement flag response from BCS. Will short circuit operations of the agg if false */
|
|
8
6
|
entitled: any;
|
|
@@ -11,7 +9,7 @@ export class Aggregate extends AggregateBase {
|
|
|
11
9
|
/** If the harvest module is harvesting */
|
|
12
10
|
harvesting: boolean;
|
|
13
11
|
/** TraceStorage is the mechanism that holds, normalizes and aggregates ST nodes. It will be accessed and purged when harvests occur */
|
|
14
|
-
|
|
12
|
+
events: TraceStorage;
|
|
15
13
|
/** Sets up event listeners, and initializes this module to run in the correct "mode". Can be triggered from a few places, but makes an effort to only set up listeners once */
|
|
16
14
|
initialize(stMode: any, stEntitled: any, ignoreSession: any): void;
|
|
17
15
|
initialized: boolean | undefined;
|
|
@@ -22,26 +20,26 @@ export class Aggregate extends AggregateBase {
|
|
|
22
20
|
scheduler: HarvestScheduler | undefined;
|
|
23
21
|
/** This module does not auto harvest by default -- it needs to be kicked off. Once this method is called, it will then harvest on an interval */
|
|
24
22
|
startHarvesting(): void;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
preHarvestChecks(): true | undefined;
|
|
24
|
+
serializer({ stns }: {
|
|
25
|
+
stns: any;
|
|
26
|
+
}): Object | undefined;
|
|
27
|
+
queryStringsBuilder({ stns, earliestTimeStamp, latestTimeStamp }: {
|
|
28
|
+
stns: any;
|
|
29
|
+
earliestTimeStamp: any;
|
|
30
|
+
latestTimeStamp: any;
|
|
31
|
+
}): {
|
|
32
|
+
browser_monitoring_key: any;
|
|
33
|
+
type: string;
|
|
34
|
+
app_id: any;
|
|
35
|
+
protocol_version: string;
|
|
36
|
+
timestamp: number;
|
|
37
|
+
attributes: string;
|
|
36
38
|
};
|
|
37
|
-
/** When the harvest scheduler finishes, this callback is executed. It's main purpose is to determine if the payload needs to be retried
|
|
38
|
-
* and if so, it will take all data from the temporary buffer and place it back into the traceStorage module
|
|
39
|
-
*/
|
|
40
|
-
onHarvestFinished(result: any): void;
|
|
41
39
|
/** Switch from "off" or "error" to full mode (if entitled) */
|
|
42
40
|
switchToFull(): void;
|
|
43
41
|
/** Stop running for the remainder of the page lifecycle */
|
|
44
|
-
abort(
|
|
42
|
+
abort(): void;
|
|
45
43
|
}
|
|
46
44
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
47
45
|
import { TraceStorage } from './trace/storage';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAeA;IACE,2BAAiC;IAEjC,2BAeC;IAZC,wBAA8E;IAC9E,0GAA0G;IAC1G,cAAyB;IACzB,mIAAmI;IACnI,uBAA0B;IAC1B,0CAA0C;IAC1C,oBAAuB;IACvB,wIAAwI;IACxI,qBAAoC;IAMtC,gLAAgL;IAChL,mEAoEC;IA/DG,iCAAuB;IACvB,yJAAyJ;IACzJ,UAAsC;IACtC,eAA2D;IAyBD,UAAgE;IAS5H,wCAKQ;IAuBV,kJAAkJ;IAClJ,wBAIC;IAED,qCAUC;IAED;;2BAIC;IAED;;;;;;;;;;;MA6CC;IAED,8DAA8D;IAC9D,qBAUC;IAED,2DAA2D;IAC3D,cAMC;CACF;8BApM6B,4BAA4B;6BAC7B,iBAAiB;iCAHb,2CAA2C"}
|