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