@sentry/replay 11.21.0 → 11.22.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.
package/build/npm/cjs/index.js
CHANGED
|
@@ -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.
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
// ../../node_modules/.pnpm/@sentry+conventions@0.37.0/node_modules/@sentry/conventions/dist/attributes.mjs
|
|
5
|
+
const eg = "sentry.replay_id";
|
|
6
|
+
const ug = "sentry.segment.name.source";
|
|
7
7
|
// src/constants.ts
|
|
8
8
|
const WINDOW = _sentry_core.GLOBAL_OBJ;
|
|
9
9
|
const REPLAY_SESSION_KEY = "sentryReplaySession";
|
|
@@ -6256,7 +6256,7 @@ var ReplayContainer = class {
|
|
|
6256
6256
|
const lastRootSpan = lastActiveSpan && (0, _sentry_core.getRootSpan)(lastActiveSpan);
|
|
6257
6257
|
if (!lastRootSpan) return;
|
|
6258
6258
|
const spanJson = (0, _sentry_core.spanToJSON)(lastRootSpan);
|
|
6259
|
-
const source = spanJson.attributes[
|
|
6259
|
+
const source = spanJson.attributes[ug];
|
|
6260
6260
|
if (!source || !["route", "custom"].includes(source)) return;
|
|
6261
6261
|
return spanJson.name;
|
|
6262
6262
|
}
|
|
@@ -6837,7 +6837,7 @@ var Replay = class {
|
|
|
6837
6837
|
processSpan(span) {
|
|
6838
6838
|
const replayId = this.getReplayId(true);
|
|
6839
6839
|
if (replayId) {
|
|
6840
|
-
(0, _sentry_core.safeSetSpanJSONAttributes)(span, { [
|
|
6840
|
+
(0, _sentry_core.safeSetSpanJSONAttributes)(span, { [eg]: replayId });
|
|
6841
6841
|
if (this.getRecordingMode() === "buffer") (0, _sentry_core.safeSetSpanJSONAttributes)(span, { "sentry._internal.replay_is_buffering": true });
|
|
6842
6842
|
}
|
|
6843
6843
|
}
|