@multiplayer-app/session-recorder-browser 0.0.8 → 0.0.9

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.
@@ -26457,7 +26457,7 @@ const MULTIPLAYER_BASE_API_URL = 'https://api.multiplayer.app';
26457
26457
  const SESSION_RESPONSE = 'multiplayer-debug-session-response';
26458
26458
  const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
26459
26459
  const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
26460
- const PACKAGE_VERSION_EXPORT = "0.0.8" || 0;
26460
+ const PACKAGE_VERSION_EXPORT = "0.0.9" || 0;
26461
26461
  // Regex patterns for OpenTelemetry ignore URLs
26462
26462
  const OTEL_IGNORE_URLS = [
26463
26463
  // Traces endpoint
@@ -26842,6 +26842,12 @@ function processBody(payload, config, span) {
26842
26842
  return {};
26843
26843
  }
26844
26844
  let { requestBody, responseBody } = payload;
26845
+ if (requestBody !== undefined && requestBody !== null) {
26846
+ requestBody = JSON.parse(JSON.stringify(requestBody));
26847
+ }
26848
+ if (responseBody !== undefined && responseBody !== null) {
26849
+ responseBody = JSON.parse(JSON.stringify(responseBody));
26850
+ }
26845
26851
  // Apply schemify for document traces
26846
26852
  if (traceId.startsWith(_multiplayer_app_session_recorder_common__WEBPACK_IMPORTED_MODULE_0__.MULTIPLAYER_TRACE_DOC_PREFIX)) {
26847
26853
  if (schemifyDocSpanPayload) {