From ce70cf18b97b5d77cd96793e733569cfd63bbb5d Mon Sep 17 00:00:00 2001 From: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:59:56 -0400 Subject: [PATCH] Explore Metrics: small little code fixes (#90627) * fix: does not need to be exported * fix: about time we remove this --- public/app/features/trails/Integrations/DataTrailEmbedded.tsx | 2 +- public/app/features/trails/utils.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/features/trails/Integrations/DataTrailEmbedded.tsx b/public/app/features/trails/Integrations/DataTrailEmbedded.tsx index cfd71a71d5a..52f2dd39775 100644 --- a/public/app/features/trails/Integrations/DataTrailEmbedded.tsx +++ b/public/app/features/trails/Integrations/DataTrailEmbedded.tsx @@ -24,7 +24,7 @@ function DataTrailEmbeddedRenderer({ model }: SceneComponentProps; } -export function buildDataTrailFromState({ metric, filters, dataSourceUid, timeRange }: DataTrailEmbeddedState) { +function buildDataTrailFromState({ metric, filters, dataSourceUid, timeRange }: DataTrailEmbeddedState) { return new DataTrail({ $timeRange: timeRange, metric, diff --git a/public/app/features/trails/utils.ts b/public/app/features/trails/utils.ts index 2b18245a6dc..86c63f6eebc 100644 --- a/public/app/features/trails/utils.ts +++ b/public/app/features/trails/utils.ts @@ -30,7 +30,6 @@ export function newMetricsTrail(initialDS?: string): DataTrail { return new DataTrail({ initialDS, $timeRange: new SceneTimeRange({ from: 'now-1h', to: 'now' }), - //initialFilters: [{ key: 'job', operator: '=', value: 'grafana' }], embedded: false, }); }