Skip to content

Commit 225c4d4

Browse files
Abdkhan14Abdullah Khan
and
Abdullah Khan
authored
fix(new-trace): Fixing broken links from webvitals to trace view (#83868)
Co-authored-by: Abdullah Khan <[email protected]>
1 parent a1c3e45 commit 225c4d4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

static/app/views/insights/browser/webVitals/components/pageOverviewWebVitalsDetailPanel.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import type {
4040
import decodeBrowserTypes from 'sentry/views/insights/browser/webVitals/utils/queryParameterDecoders/browserType';
4141
import useProfileExists from 'sentry/views/insights/browser/webVitals/utils/useProfileExists';
4242
import {SampleDrawerBody} from 'sentry/views/insights/common/components/sampleDrawerBody';
43+
import {useDomainViewFilters} from 'sentry/views/insights/pages/useFilters';
4344
import {SpanIndexedField, type SubregionCode} from 'sentry/views/insights/types';
4445
import {TraceViewSources} from 'sentry/views/performance/newTraceDetails/traceHeader/breadcrumbs';
4546
import {generateReplayLink} from 'sentry/views/performance/transactionSummary/utils';
@@ -86,6 +87,7 @@ export function PageOverviewWebVitalsDetailPanel({
8687
const organization = useOrganization();
8788
const routes = useRoutes();
8889
const {replayExists} = useReplayExists();
90+
const domainViewFilters = useDomainViewFilters();
8991

9092
const browserTypes = decodeBrowserTypes(location.query[SpanIndexedField.BROWSER_NAME]);
9193
const subregions = location.query[
@@ -224,6 +226,7 @@ export function PageOverviewWebVitalsDetailPanel({
224226
projectSlug,
225227
organization,
226228
location,
229+
view: domainViewFilters.view,
227230
source: TraceViewSources.WEB_VITALS_MODULE,
228231
});
229232
return (

static/app/views/insights/browser/webVitals/components/tables/pageSamplePerformanceTable.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {
4747
import decodeBrowserTypes from 'sentry/views/insights/browser/webVitals/utils/queryParameterDecoders/browserType';
4848
import useProfileExists from 'sentry/views/insights/browser/webVitals/utils/useProfileExists';
4949
import {useWebVitalsSort} from 'sentry/views/insights/browser/webVitals/utils/useWebVitalsSort';
50+
import {useDomainViewFilters} from 'sentry/views/insights/pages/useFilters';
5051
import {
5152
ModuleName,
5253
SpanIndexedField,
@@ -106,6 +107,7 @@ export function PageSamplePerformanceTable({transaction, search, limit = 9}: Pro
106107
const {replayExists} = useReplayExists();
107108
const routes = useRoutes();
108109
const navigate = useNavigate();
110+
const domainViewFilters = useDomainViewFilters();
109111

110112
const browserTypes = decodeBrowserTypes(location.query[SpanIndexedField.BROWSER_NAME]);
111113
const subregions = decodeList(
@@ -392,6 +394,7 @@ export function PageSamplePerformanceTable({transaction, search, limit = 9}: Pro
392394
timestamp: row.timestamp,
393395
organization,
394396
location,
397+
view: domainViewFilters.view,
395398
source: TraceViewSources.WEB_VITALS_MODULE,
396399
});
397400

0 commit comments

Comments
 (0)