From 28d9cc73103700eeea6e7cc7bf07d6708a97cf5c Mon Sep 17 00:00:00 2001 From: Brendan O'Handley Date: Tue, 1 Oct 2024 15:09:39 -0500 Subject: [PATCH] Explore metrics: Fix bug that turns off otel experience when selecting otel variables (#94106) fix bug that turns of otel experience when selecting otel variables --- public/app/features/trails/DataTrail.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/app/features/trails/DataTrail.tsx b/public/app/features/trails/DataTrail.tsx index fd689bc5fb4..dfc4a52a88e 100644 --- a/public/app/features/trails/DataTrail.tsx +++ b/public/app/features/trails/DataTrail.tsx @@ -381,7 +381,7 @@ export class DataTrail extends SceneObjectBase { } } /** - * This function is used to update state and otel variables + * This function is used to update state and otel variables. * * 1. Set the otelResources adhoc tagKey and tagValues filter functions 2. Get the otel join query for state and variable @@ -392,6 +392,11 @@ export class DataTrail extends SceneObjectBase { - has otel resources flag - isStandardOtel flag (for enabliing the otel experience toggle) - and useOtelExperience + * + * This function is called on start and when variables change. + * On start will provide the deploymentEnvironments and hasOtelResources parameters. + * In the variable change case, we will not provide these parameters. It is assumed that the + * data source has been checked for otel resources and standardization and the otel variables are enabled at this point. * @param datasourceUid * @param timeRange * @param otelDepEnvVariable @@ -504,7 +509,6 @@ export class DataTrail extends SceneObjectBase { this.setState({ otelTargets, otelJoinQuery, - useOtelExperience: false, }); } }