o11y 244.0.1 → 244.2.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/dist/modules/o11y/client/client.js +7 -5
- package/dist/modules/o11y/client/client.js.map +1 -1
- package/dist/modules/o11y/client/index.d.ts +1 -0
- package/dist/modules/o11y/client/interfaces/Activity.d.ts +3 -2
- package/dist/modules/o11y/client/interfaces/PayloadProvider.d.ts +1 -1
- package/dist/modules/o11y/client/library/ActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/client/shared/Utility.d.ts +1 -0
- package/dist/modules/o11y/client/version.d.ts +1 -1
- package/dist/modules/o11y/collectors/index.d.ts +1 -0
- package/dist/modules/o11y/collectors/interfaces/Activity.d.ts +3 -2
- package/dist/modules/o11y/collectors/interfaces/PayloadProvider.d.ts +1 -1
- package/dist/modules/o11y/collectors/library/ActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/collectors/shared/Utility.d.ts +1 -0
- package/dist/modules/o11y/collectors/version.d.ts +1 -1
- package/dist/modules/o11y/core_envelope/core_envelope.js +1 -1
- package/dist/modules/o11y/core_envelope/core_envelope.js.map +1 -1
- package/dist/modules/o11y/core_envelope/index.d.ts +1 -0
- package/dist/modules/o11y/core_envelope/interfaces/Activity.d.ts +3 -2
- package/dist/modules/o11y/core_envelope/interfaces/PayloadProvider.d.ts +1 -1
- package/dist/modules/o11y/core_envelope/library/ActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/core_envelope/shared/Utility.d.ts +1 -0
- package/dist/modules/o11y/core_envelope/version.d.ts +1 -1
- package/dist/modules/o11y/shared/index.d.ts +1 -0
- package/dist/modules/o11y/shared/interfaces/Activity.d.ts +3 -2
- package/dist/modules/o11y/shared/interfaces/PayloadProvider.d.ts +1 -1
- package/dist/modules/o11y/shared/library/ActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/shared/shared/Utility.d.ts +1 -0
- package/dist/modules/o11y/shared/shared.js +2 -2
- package/dist/modules/o11y/shared/shared.js.map +1 -1
- package/dist/modules/o11y/shared/version.d.ts +1 -1
- package/dist/modules/o11y/simple_collector/index.d.ts +1 -0
- package/dist/modules/o11y/simple_collector/interfaces/Activity.d.ts +3 -2
- package/dist/modules/o11y/simple_collector/interfaces/PayloadProvider.d.ts +1 -1
- package/dist/modules/o11y/simple_collector/library/ActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/simple_collector/shared/Utility.d.ts +1 -0
- package/dist/modules/o11y/simple_collector/version.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/index.d.ts +1 -0
- package/dist/modules/o11y/web_vitals/interfaces/Activity.d.ts +3 -2
- package/dist/modules/o11y/web_vitals/interfaces/PayloadProvider.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/library/ActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/shared/Utility.d.ts +1 -0
- package/dist/modules/o11y/web_vitals/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -376,10 +376,10 @@ class ActivityImpl {
|
|
|
376
376
|
this.stop();
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
-
terminate() {
|
|
379
|
+
terminate(userSchemaOrText, userData, options) {
|
|
380
380
|
this._safety.tryCatch(() => {
|
|
381
381
|
this._stopReason = this._stopReason || stopReason.terminated;
|
|
382
|
-
this.stop();
|
|
382
|
+
this.stop(userSchemaOrText, userData, options);
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
getIsSampled() {
|
|
@@ -1579,7 +1579,8 @@ class NextgenImpl {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
addLog(loggerName, schema, data, timestamp, rootId, pagePayload, appPayload) {
|
|
1581
1581
|
this._sequence += 1;
|
|
1582
|
-
const
|
|
1582
|
+
const userSchema = schemaUtil.isInternal(schema) && (data === null || data === void 0 ? void 0 : data.userPayload) ? data.userPayload.schema : schema;
|
|
1583
|
+
const schemaId = schemaUtil.getSchemaId(userSchema);
|
|
1583
1584
|
let schemaSequence = this._seqBySchema.get(schemaId) || 0;
|
|
1584
1585
|
schemaSequence += 1;
|
|
1585
1586
|
this._seqBySchema.set(schemaId, schemaSequence);
|
|
@@ -1937,13 +1938,14 @@ class IdleDetectorImpl {
|
|
|
1937
1938
|
const logData = this._getReport(maxDuration, listeners.length, taskReport, pollableReport);
|
|
1938
1939
|
this._instr.log(idle_detector_report, logData);
|
|
1939
1940
|
}
|
|
1941
|
+
listeners.reverse();
|
|
1940
1942
|
const tsNow = utility.time().tsNow;
|
|
1941
1943
|
for (const [index, listener] of listeners.entries()) {
|
|
1942
1944
|
try {
|
|
1943
1945
|
listener(tsNow);
|
|
1944
1946
|
}
|
|
1945
1947
|
catch (e) {
|
|
1946
|
-
this._instr.error(e, `Listener #${index}`);
|
|
1948
|
+
this._instr.error(e, `Listener #${listeners.length - 1 - index}`);
|
|
1947
1949
|
utility.noProdThrow(e);
|
|
1948
1950
|
}
|
|
1949
1951
|
}
|
|
@@ -2018,7 +2020,7 @@ class ConsoleCollector {
|
|
|
2018
2020
|
}
|
|
2019
2021
|
}
|
|
2020
2022
|
|
|
2021
|
-
const version = '244.
|
|
2023
|
+
const version = '244.2.1';
|
|
2022
2024
|
|
|
2023
2025
|
const idleDetector = new IdleDetectorImpl({
|
|
2024
2026
|
logThreshold: 300
|