@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.js CHANGED
@@ -24263,7 +24263,7 @@ const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
24263
24263
  const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
24264
24264
  const REMOTE_SESSION_RECORDING_START = 'remote-session-recording:start';
24265
24265
  const REMOTE_SESSION_RECORDING_STOP = 'remote-session-recording:stop';
24266
- const PACKAGE_VERSION_EXPORT = "2.0.55" || 0;
24266
+ const PACKAGE_VERSION_EXPORT = "2.0.56" || 0;
24267
24267
  // Regex patterns for OpenTelemetry ignore URLs
24268
24268
  const OTEL_IGNORE_URLS = [
24269
24269
  // Traces endpoint
@@ -28003,7 +28003,7 @@ class SessionRecorder extends lib0_observable__WEBPACK_IMPORTED_MODULE_16__.Obse
28003
28003
  * Start tracing and recording for the session
28004
28004
  */
28005
28005
  _start() {
28006
- var _a;
28006
+ var _a, _b;
28007
28007
  this.sessionState = _types__WEBPACK_IMPORTED_MODULE_4__.SessionState.started;
28008
28008
  // eslint-disable-next-line no-self-assign
28009
28009
  this.sessionType = this.sessionType;
@@ -28012,9 +28012,11 @@ class SessionRecorder extends lib0_observable__WEBPACK_IMPORTED_MODULE_16__.Obse
28012
28012
  void this._recorder.restart(this.sessionId, this.sessionType);
28013
28013
  this._navigationRecorder.start({ sessionId: this.sessionId, sessionType: this.sessionType });
28014
28014
  if (this.session) {
28015
- _eventBus__WEBPACK_IMPORTED_MODULE_7__.recorderEventBus.emit(_config__WEBPACK_IMPORTED_MODULE_5__.SESSION_STARTED_EVENT, this.session);
28016
28015
  this._socketService.subscribeToSession(this.session);
28017
28016
  this._sessionWidget.seconds = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.getTimeDifferenceInSeconds)((_a = this.session) === null || _a === void 0 ? void 0 : _a.startedAt);
28017
+ if ((_b = this.session) === null || _b === void 0 ? void 0 : _b.url) {
28018
+ _eventBus__WEBPACK_IMPORTED_MODULE_7__.recorderEventBus.emit(_config__WEBPACK_IMPORTED_MODULE_5__.SESSION_AUTO_CREATED, this.session.url);
28019
+ }
28018
28020
  }
28019
28021
  }
28020
28022
  /**