@multiplayer-app/session-recorder-browser 1.3.21 → 1.3.22
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 +6 -5
- package/dist/exporters/index.js +1 -1
- package/dist/exporters/index.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/otel/index.d.ts.map +1 -1
- package/dist/otel/index.js +2 -1
- package/dist/otel/index.js.map +1 -1
- package/dist/session-recorder.d.ts.map +1 -1
- package/dist/session-recorder.js +0 -2
- package/dist/session-recorder.js.map +1 -1
- package/package.json +2 -2
package/dist/browser/index.js
CHANGED
|
@@ -25054,7 +25054,7 @@ const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
|
25054
25054
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
25055
25055
|
const REMOTE_SESSION_RECORDING_START = 'remote-session-recording:start';
|
|
25056
25056
|
const REMOTE_SESSION_RECORDING_STOP = 'remote-session-recording:stop';
|
|
25057
|
-
const PACKAGE_VERSION_EXPORT = "1.3.
|
|
25057
|
+
const PACKAGE_VERSION_EXPORT = "1.3.22" || 0;
|
|
25058
25058
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
25059
25059
|
const OTEL_IGNORE_URLS = [
|
|
25060
25060
|
// Traces endpoint
|
|
@@ -26081,6 +26081,7 @@ class TracerBrowserSDK {
|
|
|
26081
26081
|
this.clientId = _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_1__.SessionRecorderSdk.getIdGenerator(_multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_1__.MULTIPLAYER_TRACE_CLIENT_ID_LENGTH)();
|
|
26082
26082
|
const { application, version, environment } = this.config;
|
|
26083
26083
|
this.idGenerator = new _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_1__.SessionRecorderIdGenerator();
|
|
26084
|
+
this.setSessionId('', _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_1__.SessionType.SESSION_CACHE);
|
|
26084
26085
|
this.exporter = new _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_1__.SessionRecorderBrowserTraceExporter({
|
|
26085
26086
|
apiKey: options.apiKey,
|
|
26086
26087
|
url: (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.getExporterEndpoint)(options.exporterEndpoint),
|
|
@@ -26220,7 +26221,7 @@ class TracerBrowserSDK {
|
|
|
26220
26221
|
if (!this.tracerProvider) {
|
|
26221
26222
|
throw new Error('Configuration not initialized. Call init() before start().');
|
|
26222
26223
|
}
|
|
26223
|
-
this.setSessionId('');
|
|
26224
|
+
this.setSessionId('', _multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_1__.SessionType.SESSION_CACHE);
|
|
26224
26225
|
}
|
|
26225
26226
|
setApiKey(apiKey) {
|
|
26226
26227
|
if (!this.exporter) {
|
|
@@ -28681,13 +28682,11 @@ class SessionRecorder extends lib0_observable__WEBPACK_IMPORTED_MODULE_16__.Obse
|
|
|
28681
28682
|
}, 5000);
|
|
28682
28683
|
});
|
|
28683
28684
|
this._socketService.on(_config__WEBPACK_IMPORTED_MODULE_5__.REMOTE_SESSION_RECORDING_START, (payload) => {
|
|
28684
|
-
console.log('REMOTE_SESSION_RECORDING_START', payload);
|
|
28685
28685
|
if (this.sessionState === _types__WEBPACK_IMPORTED_MODULE_4__.SessionState.stopped) {
|
|
28686
28686
|
this.start();
|
|
28687
28687
|
}
|
|
28688
28688
|
});
|
|
28689
28689
|
this._socketService.on(_config__WEBPACK_IMPORTED_MODULE_5__.REMOTE_SESSION_RECORDING_STOP, (payload) => {
|
|
28690
|
-
console.log('REMOTE_SESSION_RECORDING_STOP', payload);
|
|
28691
28690
|
if (this.sessionState !== _types__WEBPACK_IMPORTED_MODULE_4__.SessionState.stopped) {
|
|
28692
28691
|
this.stop();
|
|
28693
28692
|
}
|
|
@@ -31045,7 +31044,9 @@ var SessionRecorderIdGenerator = /** @class */ (function () {
|
|
|
31045
31044
|
}
|
|
31046
31045
|
SessionRecorderIdGenerator.prototype.generateTraceId = function () {
|
|
31047
31046
|
var traceId = this.generateLongId();
|
|
31048
|
-
if (!this.sessionShortId
|
|
31047
|
+
if (!this.sessionShortId
|
|
31048
|
+
&& !this.sessionType
|
|
31049
|
+
&& !this.clientId) {
|
|
31049
31050
|
return traceId;
|
|
31050
31051
|
}
|
|
31051
31052
|
var sessionTypePrefix = _constants_constants_base__WEBPACK_IMPORTED_MODULE_2__.MULTIPLAYER_TRACE_PREFIX_MAP[this.sessionType];
|