@multiplayer-app/session-recorder-browser 1.2.12 → 1.2.14
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/browser/index.js +7 -5
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser/index.js
CHANGED
|
@@ -25243,7 +25243,7 @@ const DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE = 100000;
|
|
|
25243
25243
|
const SESSION_RESPONSE = 'multiplayer-debug-session-response';
|
|
25244
25244
|
const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
25245
25245
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
25246
|
-
const PACKAGE_VERSION_EXPORT = "1.2.
|
|
25246
|
+
const PACKAGE_VERSION_EXPORT = "1.2.14" || 0;
|
|
25247
25247
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
25248
25248
|
const OTEL_IGNORE_URLS = [
|
|
25249
25249
|
// Traces endpoint
|
|
@@ -26226,10 +26226,12 @@ init) {
|
|
|
26226
26226
|
}
|
|
26227
26227
|
catch (error) {
|
|
26228
26228
|
// Even if the fetch fails, we can still capture the request data
|
|
26229
|
+
// Attach captured request data to the thrown error for downstream handling
|
|
26229
26230
|
// @ts-ignore
|
|
26230
|
-
|
|
26231
|
-
|
|
26232
|
-
|
|
26231
|
+
if (error && typeof error === 'object') {
|
|
26232
|
+
// @ts-ignore
|
|
26233
|
+
error.networkRequest = networkRequest;
|
|
26234
|
+
}
|
|
26233
26235
|
throw error;
|
|
26234
26236
|
}
|
|
26235
26237
|
};
|
|
@@ -27097,7 +27099,7 @@ class SessionRecorder extends lib0_observable__WEBPACK_IMPORTED_MODULE_13__.Obse
|
|
|
27097
27099
|
this._isInitialized = true;
|
|
27098
27100
|
this._checkOperation('init');
|
|
27099
27101
|
(0,_patch__WEBPACK_IMPORTED_MODULE_5__.setMaxCapturingHttpPayloadSize)(this._configs.maxCapturingHttpPayloadSize || _config__WEBPACK_IMPORTED_MODULE_4__.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE);
|
|
27100
|
-
(0,_patch__WEBPACK_IMPORTED_MODULE_5__.setShouldRecordHttpData)(
|
|
27102
|
+
(0,_patch__WEBPACK_IMPORTED_MODULE_5__.setShouldRecordHttpData)(this._configs.captureBody, this._configs.captureHeaders);
|
|
27101
27103
|
this._tracer.init(this._configs);
|
|
27102
27104
|
this._apiService.init(this._configs);
|
|
27103
27105
|
this._sessionWidget.init(this._configs);
|