Skip to content

Commit

Permalink
fix(new-trace): Fixing broken links from webvitals to trace view (#83868
Browse files Browse the repository at this point in the history
)

Co-authored-by: Abdullah Khan <[email protected]>
  • Loading branch information
Abdkhan14 and Abdullah Khan authored Jan 22, 2025
1 parent a1c3e45 commit 225c4d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import type {
import decodeBrowserTypes from 'sentry/views/insights/browser/webVitals/utils/queryParameterDecoders/browserType';
import useProfileExists from 'sentry/views/insights/browser/webVitals/utils/useProfileExists';
import {SampleDrawerBody} from 'sentry/views/insights/common/components/sampleDrawerBody';
import {useDomainViewFilters} from 'sentry/views/insights/pages/useFilters';
import {SpanIndexedField, type SubregionCode} from 'sentry/views/insights/types';
import {TraceViewSources} from 'sentry/views/performance/newTraceDetails/traceHeader/breadcrumbs';
import {generateReplayLink} from 'sentry/views/performance/transactionSummary/utils';
Expand Down Expand Up @@ -86,6 +87,7 @@ export function PageOverviewWebVitalsDetailPanel({
const organization = useOrganization();
const routes = useRoutes();
const {replayExists} = useReplayExists();
const domainViewFilters = useDomainViewFilters();

const browserTypes = decodeBrowserTypes(location.query[SpanIndexedField.BROWSER_NAME]);
const subregions = location.query[
Expand Down Expand Up @@ -224,6 +226,7 @@ export function PageOverviewWebVitalsDetailPanel({
projectSlug,
organization,
location,
view: domainViewFilters.view,
source: TraceViewSources.WEB_VITALS_MODULE,
});
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import {
import decodeBrowserTypes from 'sentry/views/insights/browser/webVitals/utils/queryParameterDecoders/browserType';
import useProfileExists from 'sentry/views/insights/browser/webVitals/utils/useProfileExists';
import {useWebVitalsSort} from 'sentry/views/insights/browser/webVitals/utils/useWebVitalsSort';
import {useDomainViewFilters} from 'sentry/views/insights/pages/useFilters';
import {
ModuleName,
SpanIndexedField,
Expand Down Expand Up @@ -106,6 +107,7 @@ export function PageSamplePerformanceTable({transaction, search, limit = 9}: Pro
const {replayExists} = useReplayExists();
const routes = useRoutes();
const navigate = useNavigate();
const domainViewFilters = useDomainViewFilters();

const browserTypes = decodeBrowserTypes(location.query[SpanIndexedField.BROWSER_NAME]);
const subregions = decodeList(
Expand Down Expand Up @@ -392,6 +394,7 @@ export function PageSamplePerformanceTable({transaction, search, limit = 9}: Pro
timestamp: row.timestamp,
organization,
location,
view: domainViewFilters.view,
source: TraceViewSources.WEB_VITALS_MODULE,
});

Expand Down

0 comments on commit 225c4d4

Please sign in to comment.