@multiplayer-app/session-recorder-browser 1.2.10 → 1.2.11
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
CHANGED
|
@@ -25245,7 +25245,7 @@ const DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE = 100000;
|
|
|
25245
25245
|
const SESSION_RESPONSE = 'multiplayer-debug-session-response';
|
|
25246
25246
|
const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
25247
25247
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
25248
|
-
const PACKAGE_VERSION_EXPORT = "1.2.
|
|
25248
|
+
const PACKAGE_VERSION_EXPORT = "1.2.11" || 0;
|
|
25249
25249
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
25250
25250
|
const OTEL_IGNORE_URLS = [
|
|
25251
25251
|
// Traces endpoint
|
|
@@ -25842,7 +25842,7 @@ async function extractResponseBody(response) {
|
|
|
25842
25842
|
catch (error) {
|
|
25843
25843
|
// If cloning fails (body already consumed), return null
|
|
25844
25844
|
// eslint-disable-next-line no-console
|
|
25845
|
-
console.warn('[
|
|
25845
|
+
console.warn('[MULTIPLAYER_SESSION_RECORDER] Failed to extract response body:', error);
|
|
25846
25846
|
return null;
|
|
25847
25847
|
}
|
|
25848
25848
|
}
|
|
@@ -25902,7 +25902,7 @@ class TracerBrowserSDK {
|
|
|
25902
25902
|
this.allowedElements = new Set(['A', 'BUTTON']);
|
|
25903
25903
|
this.sessionId = '';
|
|
25904
25904
|
}
|
|
25905
|
-
setSessionId(sessionId, sessionType = _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_1__.SessionType.
|
|
25905
|
+
setSessionId(sessionId, sessionType = _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_1__.SessionType.PLAIN) {
|
|
25906
25906
|
this.sessionId = sessionId;
|
|
25907
25907
|
this.idGenerator.setSessionId(sessionId, sessionType);
|
|
25908
25908
|
}
|
|
@@ -25967,7 +25967,7 @@ class TracerBrowserSDK {
|
|
|
25967
25967
|
}
|
|
25968
25968
|
catch (error) {
|
|
25969
25969
|
// eslint-disable-next-line
|
|
25970
|
-
console.error('[
|
|
25970
|
+
console.error('[MULTIPLAYER_SESSION_RECORDER] Failed to capture xml-http payload', error);
|
|
25971
25971
|
}
|
|
25972
25972
|
},
|
|
25973
25973
|
},
|
|
@@ -26019,7 +26019,7 @@ class TracerBrowserSDK {
|
|
|
26019
26019
|
}
|
|
26020
26020
|
catch (error) {
|
|
26021
26021
|
// eslint-disable-next-line
|
|
26022
|
-
console.error('[
|
|
26022
|
+
console.error('[MULTIPLAYER_SESSION_RECORDER] Failed to capture fetch payload', error);
|
|
26023
26023
|
}
|
|
26024
26024
|
},
|
|
26025
26025
|
},
|
|
@@ -26173,7 +26173,9 @@ function _headersToObject(headers) {
|
|
|
26173
26173
|
// Store original fetch
|
|
26174
26174
|
const originalFetch = window.fetch;
|
|
26175
26175
|
// Override fetch
|
|
26176
|
-
window.fetch = async function (input,
|
|
26176
|
+
window.fetch = async function (input,
|
|
26177
|
+
// eslint-disable-next-line
|
|
26178
|
+
init) {
|
|
26177
26179
|
const networkRequest = {};
|
|
26178
26180
|
// Capture request data
|
|
26179
26181
|
const request = new Request(input, init);
|
|
@@ -26183,7 +26185,7 @@ window.fetch = async function (input, init) {
|
|
|
26183
26185
|
if (shouldRecordBody && request.body) {
|
|
26184
26186
|
const requestBody = _tryReadFetchBody({
|
|
26185
26187
|
body: request.body,
|
|
26186
|
-
url: request.url
|
|
26188
|
+
url: request.url,
|
|
26187
26189
|
});
|
|
26188
26190
|
if ((requestBody === null || requestBody === void 0 ? void 0 : requestBody.length) &&
|
|
26189
26191
|
new Blob([requestBody]).size <= maxCapturingHttpPayloadSize) {
|
|
@@ -29151,7 +29153,7 @@ const getNavigatorInfo = () => {
|
|
|
29151
29153
|
// System type identifier (previously in system tags)
|
|
29152
29154
|
systemType: 'web',
|
|
29153
29155
|
// Platform identifier (previously in system tags)
|
|
29154
|
-
platform: osInfo
|
|
29156
|
+
platform: osInfo,
|
|
29155
29157
|
};
|
|
29156
29158
|
};
|
|
29157
29159
|
|
|
@@ -29425,7 +29427,8 @@ const isString = function (x) {
|
|
|
29425
29427
|
return toString.call(x) == '[object String]';
|
|
29426
29428
|
};
|
|
29427
29429
|
const isEmptyString = function (x) {
|
|
29428
|
-
|
|
29430
|
+
var _a;
|
|
29431
|
+
return isString(x) && ((_a = x.trim()) === null || _a === void 0 ? void 0 : _a.length) === 0;
|
|
29429
29432
|
};
|
|
29430
29433
|
const isNull = function (x) {
|
|
29431
29434
|
return x === null;
|
|
@@ -29600,6 +29603,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29600
29603
|
/* harmony export */ ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING: () => (/* binding */ ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING),
|
|
29601
29604
|
/* harmony export */ ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS: () => (/* binding */ ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS),
|
|
29602
29605
|
/* harmony export */ ATTR_MULTIPLAYER_INTEGRATION_ID: () => (/* binding */ ATTR_MULTIPLAYER_INTEGRATION_ID),
|
|
29606
|
+
/* harmony export */ ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH: () => (/* binding */ ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH),
|
|
29603
29607
|
/* harmony export */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY: () => (/* binding */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY),
|
|
29604
29608
|
/* harmony export */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING: () => (/* binding */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING),
|
|
29605
29609
|
/* harmony export */ ATTR_MULTIPLAYER_PLATFORM_ID: () => (/* binding */ ATTR_MULTIPLAYER_PLATFORM_ID),
|
|
@@ -29671,6 +29675,7 @@ var ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE = 'multiplayer.rpc.grpc.response.mess
|
|
|
29671
29675
|
var ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY = 'multiplayer.messaging.message.body';
|
|
29672
29676
|
var ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING = 'multiplayer.messaging.message.body.encoding';
|
|
29673
29677
|
var ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION = 'multiplayer.session-recorder.version';
|
|
29678
|
+
var ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH = 'multiplayer.issue.custom-hash';
|
|
29674
29679
|
var MASK_PLACEHOLDER = '***MASKED***';
|
|
29675
29680
|
//# sourceMappingURL=constants.base.js.map
|
|
29676
29681
|
|
|
@@ -29699,6 +29704,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29699
29704
|
/* harmony export */ ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING: () => (/* reexport safe */ _constants_base__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING),
|
|
29700
29705
|
/* harmony export */ ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS: () => (/* reexport safe */ _constants_base__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS),
|
|
29701
29706
|
/* harmony export */ ATTR_MULTIPLAYER_INTEGRATION_ID: () => (/* reexport safe */ _constants_base__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_INTEGRATION_ID),
|
|
29707
|
+
/* harmony export */ ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH: () => (/* reexport safe */ _constants_base__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH),
|
|
29702
29708
|
/* harmony export */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY: () => (/* reexport safe */ _constants_base__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY),
|
|
29703
29709
|
/* harmony export */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING: () => (/* reexport safe */ _constants_base__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING),
|
|
29704
29710
|
/* harmony export */ ATTR_MULTIPLAYER_PLATFORM_ID: () => (/* reexport safe */ _constants_base__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_PLATFORM_ID),
|
|
@@ -29907,6 +29913,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29907
29913
|
/* harmony export */ ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING: () => (/* reexport safe */ _constants_constants_browser__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING),
|
|
29908
29914
|
/* harmony export */ ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS: () => (/* reexport safe */ _constants_constants_browser__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS),
|
|
29909
29915
|
/* harmony export */ ATTR_MULTIPLAYER_INTEGRATION_ID: () => (/* reexport safe */ _constants_constants_browser__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_INTEGRATION_ID),
|
|
29916
|
+
/* harmony export */ ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH: () => (/* reexport safe */ _constants_constants_browser__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH),
|
|
29910
29917
|
/* harmony export */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY: () => (/* reexport safe */ _constants_constants_browser__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY),
|
|
29911
29918
|
/* harmony export */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING: () => (/* reexport safe */ _constants_constants_browser__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING),
|
|
29912
29919
|
/* harmony export */ ATTR_MULTIPLAYER_PLATFORM_ID: () => (/* reexport safe */ _constants_constants_browser__WEBPACK_IMPORTED_MODULE_0__.ATTR_MULTIPLAYER_PLATFORM_ID),
|
|
@@ -48943,6 +48950,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48943
48950
|
/* harmony export */ ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING: () => (/* reexport safe */ _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_4__.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING),
|
|
48944
48951
|
/* harmony export */ ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS: () => (/* reexport safe */ _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_4__.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS),
|
|
48945
48952
|
/* harmony export */ ATTR_MULTIPLAYER_INTEGRATION_ID: () => (/* reexport safe */ _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_4__.ATTR_MULTIPLAYER_INTEGRATION_ID),
|
|
48953
|
+
/* harmony export */ ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH: () => (/* reexport safe */ _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_4__.ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH),
|
|
48946
48954
|
/* harmony export */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY: () => (/* reexport safe */ _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_4__.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY),
|
|
48947
48955
|
/* harmony export */ ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING: () => (/* reexport safe */ _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_4__.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING),
|
|
48948
48956
|
/* harmony export */ ATTR_MULTIPLAYER_PLATFORM_ID: () => (/* reexport safe */ _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_4__.ATTR_MULTIPLAYER_PLATFORM_ID),
|