Skip to content

Commit

Permalink
ref(metrics): Update route cond for metrics settings (#73714)
Browse files Browse the repository at this point in the history
  • Loading branch information
priscilawebdev authored Jul 3, 2024
1 parent 58f2e87 commit 4aa8880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/app/views/metrics/metricQueryContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ export function MetricQueryContextMenu({
});
Sentry.metrics.increment('ddm.widget.settings');

const {useCase, name} = parseMRI(metricsQuery.mri) ?? {};
const {name, type} = parseMRI(metricsQuery.mri) ?? {};

const isSpanBasedMetric = useCase === 'spans';
const isVirtualMetric = type === 'v';

if (
!hasCustomMetricsExtractionRules(organization) ||
!isSpanBasedMetric ||
!isVirtualMetric ||
isCustomMetric({mri: metricsQuery.mri})
) {
navigateTo(
Expand Down

0 comments on commit 4aa8880

Please sign in to comment.