@sentry/replay 11.14.0 → 11.16.0

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.
@@ -1,8 +1,8 @@
1
1
  import { GLOBAL_OBJ, _INTERNAL_performanceTimeToSeconds, addBreadcrumb, addEventProcessor, captureException, consoleSandbox, createEnvelope, createEventEnvelopeHeaders, debounce as debounce$1, debug as debug$1, fill, getActiveSpan, getClient, getCurrentScope, getDynamicSamplingContextFromSpan, getIsolationScope, getRootSpan, getSdkMetadataForEnvelopeHeader, isBrowser, isObjectLike, isRateLimited, isSentryRequestUrl, normalize, parseSampleRate, prepareEvent, safeSetSpanJSONAttributes, setContext, severityLevelFromString, spanToJSON, stringMatchesSomePattern, updateRateLimits, uuid4 } from "@sentry/core";
2
2
  import { SENTRY_XHR_DATA_KEY, addClickKeypressInstrumentationHandler, addClsInstrumentationHandler, addHistoryInstrumentationHandler, addInpInstrumentationHandler, addLcpInstrumentationHandler, addPerformanceInstrumentationHandler, getBodyString, getFetchRequestArgBody, getLocationHref, htmlTreeAsString, parseXhrResponseHeaders, serializeFormData, setTimeout as setTimeout$3 } from "@sentry/browser-utils";
3
- // ../../node_modules/.pnpm/@sentry+conventions@0.33.0/node_modules/@sentry/conventions/dist/attributes.mjs
4
- const Ob = "sentry.replay_id";
5
- const qb = "sentry.segment.name.source";
3
+ // ../../node_modules/.pnpm/@sentry+conventions@0.34.0/node_modules/@sentry/conventions/dist/attributes.mjs
4
+ const Ab = "sentry.replay_id";
5
+ const Mb = "sentry.segment.name.source";
6
6
  // src/constants.ts
7
7
  const WINDOW = GLOBAL_OBJ;
8
8
  const REPLAY_SESSION_KEY = "sentryReplaySession";
@@ -6243,7 +6243,7 @@ var ReplayContainer = class {
6243
6243
  const lastRootSpan = lastActiveSpan && getRootSpan(lastActiveSpan);
6244
6244
  if (!lastRootSpan) return;
6245
6245
  const spanJson = spanToJSON(lastRootSpan);
6246
- const source = spanJson.attributes[qb];
6246
+ const source = spanJson.attributes[Mb];
6247
6247
  if (!source || !["route", "custom"].includes(source)) return;
6248
6248
  return spanJson.name;
6249
6249
  }
@@ -6823,7 +6823,7 @@ var Replay = class {
6823
6823
  processSpan(span) {
6824
6824
  const replayId = this.getReplayId(true);
6825
6825
  if (replayId) {
6826
- safeSetSpanJSONAttributes(span, { [Ob]: replayId });
6826
+ safeSetSpanJSONAttributes(span, { [Ab]: replayId });
6827
6827
  if (this.getRecordingMode() === "buffer") safeSetSpanJSONAttributes(span, { "sentry._internal.replay_is_buffering": true });
6828
6828
  }
6829
6829
  }