We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8300b commit be5b526Copy full SHA for be5b526
1 file changed
packages/browser/src/tracing/previousTrace.ts
@@ -48,6 +48,11 @@ export function addPreviousTraceSpanLink(
48
return previousTraceInfo;
49
}
50
51
+ // Only add the link if the startTimeStamp of the previous trace's root span is within
52
+ // PREVIOUS_TRACE_MAX_DURATION (1h) of the current root span's startTimestamp
53
+ // This is done to
54
+ // - avoid adding links to "stale" traces
55
+ // - enable more efficient querying for previous/next traces in Sentry
56
if (Date.now() / 1000 - previousTraceInfo.startTimestamp <= PREVIOUS_TRACE_MAX_DURATION) {
57
if (DEBUG_BUILD) {
58
logger.info(
0 commit comments