@multiplayer-app/session-recorder-browser 2.0.55 → 2.0.56

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/index.umd.js CHANGED
@@ -24436,7 +24436,7 @@ const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
24436
24436
  const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
24437
24437
  const REMOTE_SESSION_RECORDING_START = 'remote-session-recording:start';
24438
24438
  const REMOTE_SESSION_RECORDING_STOP = 'remote-session-recording:stop';
24439
- const PACKAGE_VERSION_EXPORT = "2.0.55" || 0;
24439
+ const PACKAGE_VERSION_EXPORT = "2.0.56" || 0;
24440
24440
  // Regex patterns for OpenTelemetry ignore URLs
24441
24441
  const OTEL_IGNORE_URLS = [
24442
24442
  // Traces endpoint
@@ -28202,7 +28202,7 @@ class SessionRecorder extends lib0_observable__WEBPACK_IMPORTED_MODULE_16__.Obse
28202
28202
  * Start tracing and recording for the session
28203
28203
  */
28204
28204
  _start() {
28205
- var _a;
28205
+ var _a, _b;
28206
28206
  this.sessionState = _types__WEBPACK_IMPORTED_MODULE_4__.SessionState.started;
28207
28207
  // eslint-disable-next-line no-self-assign
28208
28208
  this.sessionType = this.sessionType;
@@ -28211,9 +28211,11 @@ class SessionRecorder extends lib0_observable__WEBPACK_IMPORTED_MODULE_16__.Obse
28211
28211
  void this._recorder.restart(this.sessionId, this.sessionType);
28212
28212
  this._navigationRecorder.start({ sessionId: this.sessionId, sessionType: this.sessionType });
28213
28213
  if (this.session) {
28214
- _eventBus__WEBPACK_IMPORTED_MODULE_7__.recorderEventBus.emit(_config__WEBPACK_IMPORTED_MODULE_5__.SESSION_STARTED_EVENT, this.session);
28215
28214
  this._socketService.subscribeToSession(this.session);
28216
28215
  this._sessionWidget.seconds = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.getTimeDifferenceInSeconds)((_a = this.session) === null || _a === void 0 ? void 0 : _a.startedAt);
28216
+ if ((_b = this.session) === null || _b === void 0 ? void 0 : _b.url) {
28217
+ _eventBus__WEBPACK_IMPORTED_MODULE_7__.recorderEventBus.emit(_config__WEBPACK_IMPORTED_MODULE_5__.SESSION_AUTO_CREATED, this.session.url);
28218
+ }
28217
28219
  }
28218
28220
  }
28219
28221
  /**