Skip to content

Commit ab1c197

Browse files
mjqclaude
andcommitted
fix(perf): Preserve date context in trace links from sampled events table
Passing an empty dateSelection to getTraceDetailsUrl caused the current page's date filter params (statsPeriod, start, end) to be overwritten with undefined. Use normalizeDateTimeParams to extract the date selection from the URL query params instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 921f64d commit ab1c197

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

static/app/views/performance/eap/sampledEventsTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {Link} from '@sentry/scraps/link';
88
import {Tooltip} from '@sentry/scraps/tooltip';
99

1010
import {Duration} from 'sentry/components/duration';
11+
import {normalizeDateTimeParams} from 'sentry/components/pageFilters/parse';
1112
import {usePageFilters} from 'sentry/components/pageFilters/usePageFilters';
1213
import {Pagination, type CursorHandler} from 'sentry/components/pagination';
1314
import {RowRectangle} from 'sentry/components/performance/waterfall/rowBar';
@@ -287,7 +288,7 @@ function renderBodyCell(
287288
const target = getTraceDetailsUrl({
288289
organization,
289290
traceSlug: traceId,
290-
dateSelection: {},
291+
dateSelection: normalizeDateTimeParams(location.query),
291292
timestamp: row.timestamp,
292293
location,
293294
source: TraceViewSources.PERFORMANCE_TRANSACTION_SUMMARY,

0 commit comments

Comments
 (0)