From 1eb45dd0f80e86bc78bb96977de9a9e03da8ab7a Mon Sep 17 00:00:00 2001 From: Brendan O'Handley Date: Thu, 16 Jan 2025 10:00:39 -0600 Subject: [PATCH] Explore metrics: Do not show otel switch in related metrics tab (#99054) do not show otel switch in related metrics tab --- public/app/features/trails/MetricSelect/MetricSelectScene.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/trails/MetricSelect/MetricSelectScene.tsx b/public/app/features/trails/MetricSelect/MetricSelectScene.tsx index ce3d0c86dd3..99fcd423fe7 100644 --- a/public/app/features/trails/MetricSelect/MetricSelectScene.tsx +++ b/public/app/features/trails/MetricSelect/MetricSelectScene.tsx @@ -512,7 +512,7 @@ export class MetricSelectScene extends SceneObjectBase i const [warningDismissed, dismissWarning] = useReducer(() => true, false); - const { metricSearch, useOtelExperience, hasOtelResources, isStandardOtel } = trail.useState(); + const { metricSearch, useOtelExperience, hasOtelResources, isStandardOtel, metric } = trail.useState(); const tooStrict = children.length === 0 && metricSearch; const noMetrics = !metricNamesLoading && metricNames && metricNames.length === 0; @@ -573,7 +573,7 @@ export class MetricSelectScene extends SceneObjectBase i ]} /> - {hasOtelResources && ( + {!metric && hasOtelResources && (