@sentry/replay 11.15.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,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _sentry_core = require("@sentry/core");
3
3
  let _sentry_browser_utils = require("@sentry/browser-utils");
4
- // ../../node_modules/.pnpm/@sentry+conventions@0.33.0/node_modules/@sentry/conventions/dist/attributes.mjs
5
- const Ob = "sentry.replay_id";
6
- const qb = "sentry.segment.name.source";
4
+ // ../../node_modules/.pnpm/@sentry+conventions@0.34.0/node_modules/@sentry/conventions/dist/attributes.mjs
5
+ const Ab = "sentry.replay_id";
6
+ const Mb = "sentry.segment.name.source";
7
7
  // src/constants.ts
8
8
  const WINDOW = _sentry_core.GLOBAL_OBJ;
9
9
  const REPLAY_SESSION_KEY = "sentryReplaySession";
@@ -6244,7 +6244,7 @@ var ReplayContainer = class {
6244
6244
  const lastRootSpan = lastActiveSpan && (0, _sentry_core.getRootSpan)(lastActiveSpan);
6245
6245
  if (!lastRootSpan) return;
6246
6246
  const spanJson = (0, _sentry_core.spanToJSON)(lastRootSpan);
6247
- const source = spanJson.attributes[qb];
6247
+ const source = spanJson.attributes[Mb];
6248
6248
  if (!source || !["route", "custom"].includes(source)) return;
6249
6249
  return spanJson.name;
6250
6250
  }
@@ -6824,7 +6824,7 @@ var Replay = class {
6824
6824
  processSpan(span) {
6825
6825
  const replayId = this.getReplayId(true);
6826
6826
  if (replayId) {
6827
- (0, _sentry_core.safeSetSpanJSONAttributes)(span, { [Ob]: replayId });
6827
+ (0, _sentry_core.safeSetSpanJSONAttributes)(span, { [Ab]: replayId });
6828
6828
  if (this.getRecordingMode() === "buffer") (0, _sentry_core.safeSetSpanJSONAttributes)(span, { "sentry._internal.replay_is_buffering": true });
6829
6829
  }
6830
6830
  }