Skip to content

Commit fde12f7

Browse files
authored
fix(agents-insights): trace view link (#92394)
1 parent 946921a commit fde12f7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

static/app/views/insights/agentMonitoring/components/tracesTable.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import GridEditable, {
88
} from 'sentry/components/gridEditable';
99
import ProjectBadge from 'sentry/components/idBadge/projectBadge';
1010
import Link from 'sentry/components/links/link';
11+
import {normalizeDateTimeParams} from 'sentry/components/organizations/pageFilters/parse';
1112
import Pagination from 'sentry/components/pagination';
1213
import TimeSince from 'sentry/components/timeSince';
1314
import {t} from 'sentry/locale';
@@ -118,8 +119,8 @@ const BodyCell = memo(function BodyCell({
118119
}) {
119120
const location = useLocation();
120121
const organization = useOrganization();
121-
const {selection} = usePageFilters();
122122
const {projects} = useProjects();
123+
const {selection} = usePageFilters();
123124

124125
const project = useMemo(
125126
() => projects.find(p => p.slug === dataRow.project),
@@ -128,16 +129,11 @@ const BodyCell = memo(function BodyCell({
128129

129130
const traceViewTarget = getTraceDetailsUrl({
130131
eventId: dataRow.traceId,
131-
timestamp: dataRow.timestamp,
132-
source: TraceViewSources.SCREEN_LOADS_MODULE,
132+
source: TraceViewSources.LLM_MODULE, // TODO: change source to AGENT_MONITORING
133133
organization,
134134
location,
135135
traceSlug: dataRow.traceId,
136-
dateSelection: {
137-
start: selection.datetime.start,
138-
end: selection.datetime.end,
139-
statsPeriod: selection.datetime.period,
140-
},
136+
dateSelection: normalizeDateTimeParams(selection),
141137
});
142138

143139
switch (column.key) {

0 commit comments

Comments
 (0)