Explore metrics: Do not show otel switch in related metrics tab (#99054)

do not show otel switch in related metrics tab
pull/99109/head
Brendan O'Handley 6 months ago committed by GitHub
parent cff07c9fb6
commit 1eb45dd0f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      public/app/features/trails/MetricSelect/MetricSelectScene.tsx

@ -512,7 +512,7 @@ export class MetricSelectScene extends SceneObjectBase<MetricSelectSceneState> 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<MetricSelectSceneState> i
]}
/>
</Field>
{hasOtelResources && (
{!metric && hasOtelResources && (
<Field
label={
<>

Loading…
Cancel
Save