o11y 252.10.0 → 254.2.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/dist/modules/o11y/client/client.js +11 -4
- package/dist/modules/o11y/client/client.js.map +1 -1
- package/dist/modules/o11y/client/library/PerformanceObservability.d.ts +1 -0
- package/dist/modules/o11y/client/version.d.ts +1 -1
- package/dist/modules/o11y/collectors/library/PerformanceObservability.d.ts +1 -0
- package/dist/modules/o11y/collectors/version.d.ts +1 -1
- package/dist/modules/o11y/core_envelope/library/PerformanceObservability.d.ts +1 -0
- package/dist/modules/o11y/core_envelope/version.d.ts +1 -1
- package/dist/modules/o11y/shared/library/PerformanceObservability.d.ts +1 -0
- package/dist/modules/o11y/shared/version.d.ts +1 -1
- package/dist/modules/o11y/simple_collector/library/PerformanceObservability.d.ts +1 -0
- package/dist/modules/o11y/simple_collector/version.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/library/PerformanceObservability.d.ts +1 -0
- package/dist/modules/o11y/web_vitals/version.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/web_vitals.js.map +1 -1
- package/package.json +1 -1
|
@@ -459,6 +459,9 @@ class PerformanceObservability {
|
|
|
459
459
|
srvReqId: requestInfo === null || requestInfo === void 0 ? void 0 : requestInfo.requestId,
|
|
460
460
|
xhrDelay: requestInfo ? requestInfo.activityDuration - rt.duration : undefined
|
|
461
461
|
});
|
|
462
|
+
if (payload.responseStatus === undefined) {
|
|
463
|
+
payload.responseStatus = requestInfo === null || requestInfo === void 0 ? void 0 : requestInfo.responseStatus;
|
|
464
|
+
}
|
|
462
465
|
this._logActivity(resource_timing, payload, requestInfo === null || requestInfo === void 0 ? void 0 : requestInfo.activityId, requestInfo === null || requestInfo === void 0 ? void 0 : requestInfo.errorCount);
|
|
463
466
|
}
|
|
464
467
|
}
|
|
@@ -657,6 +660,7 @@ class Tracing {
|
|
|
657
660
|
let method;
|
|
658
661
|
let fetchTime;
|
|
659
662
|
let suspendInstrumentation = false;
|
|
663
|
+
let response;
|
|
660
664
|
try {
|
|
661
665
|
tasker === null || tasker === void 0 ? void 0 : tasker.add();
|
|
662
666
|
method = options === null || options === void 0 ? void 0 : options.method;
|
|
@@ -702,7 +706,8 @@ class Tracing {
|
|
|
702
706
|
}
|
|
703
707
|
}
|
|
704
708
|
fetchTime = utility.perfNow();
|
|
705
|
-
|
|
709
|
+
response = await Tracing._originalFetch.call(Tracing._global, resource, options, ...restArgs);
|
|
710
|
+
return response;
|
|
706
711
|
}
|
|
707
712
|
catch (ex) {
|
|
708
713
|
if (logErrors && !suspendInstrumentation) {
|
|
@@ -724,7 +729,8 @@ class Tracing {
|
|
|
724
729
|
requestId,
|
|
725
730
|
activityDuration,
|
|
726
731
|
activityId: activity === null || activity === void 0 ? void 0 : activity.getId(),
|
|
727
|
-
errorCount: activity === null || activity === void 0 ? void 0 : activity.getErrorCount()
|
|
732
|
+
errorCount: activity === null || activity === void 0 ? void 0 : activity.getErrorCount(),
|
|
733
|
+
responseStatus: response === null || response === void 0 ? void 0 : response.status
|
|
728
734
|
});
|
|
729
735
|
}
|
|
730
736
|
}
|
|
@@ -766,7 +772,8 @@ class Tracing {
|
|
|
766
772
|
requestId: xhr._o11y.requestId,
|
|
767
773
|
activityDuration,
|
|
768
774
|
activityId: activity === null || activity === void 0 ? void 0 : activity.getId(),
|
|
769
|
-
errorCount: activity === null || activity === void 0 ? void 0 : activity.getErrorCount()
|
|
775
|
+
errorCount: activity === null || activity === void 0 ? void 0 : activity.getErrorCount(),
|
|
776
|
+
responseStatus: xhr.status
|
|
770
777
|
});
|
|
771
778
|
}
|
|
772
779
|
}
|
|
@@ -2655,7 +2662,7 @@ class ConsoleCollector {
|
|
|
2655
2662
|
}
|
|
2656
2663
|
}
|
|
2657
2664
|
|
|
2658
|
-
const version = '
|
|
2665
|
+
const version = '254.2.0';
|
|
2659
2666
|
|
|
2660
2667
|
const idleDetector = new IdleDetectorImpl({
|
|
2661
2668
|
logThreshold: 300,
|