Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {getEventTimestampInSeconds} from 'sentry/components/events/interfaces/ut
import {generateTraceTarget} from 'sentry/components/quickTrace/utils';
import {t} from 'sentry/locale';
import {type Event} from 'sentry/types/event';
import type {Group} from 'sentry/types/group';
import {getIssueTypeFromOccurrenceType, IssueType, type Group} from 'sentry/types/group';
import type {Organization} from 'sentry/types/organization';
import {getConfigForIssueType} from 'sentry/utils/issueTypeConfig';
import useRouteAnalyticsParams from 'sentry/utils/routeAnalytics/useRouteAnalyticsParams';
Expand Down Expand Up @@ -132,7 +132,7 @@ const IssuesTraceContainer = styled('div')`
`;

const isWebVitalsEvent = (event: Event) => {
return event.tags.some((tag: {key: string}) => tag?.key === 'web_vital');
return getIssueTypeFromOccurrenceType(event.occurrence?.type) === IssueType.WEB_VITALS; // Web Vitals group type id
};

interface EventTraceViewProps {
Expand Down
Loading