mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: dashboard feature tracking (#61210)
* grafana_tempo_dashboard_loaded * Update version * Updates * Added more tracking stats + updates
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
import { DataSourcePlugin } from '@grafana/data';
|
||||
import { DataSourcePlugin, DashboardLoadedEvent } from '@grafana/data';
|
||||
import { getAppEvents } from '@grafana/runtime';
|
||||
|
||||
import CheatSheet from './CheatSheet';
|
||||
import { TempoQueryField } from './QueryEditor/QueryField';
|
||||
import { ConfigEditor } from './configuration/ConfigEditor';
|
||||
import { TempoDatasource } from './datasource';
|
||||
import { onDashboardLoadedHandler } from './tracking';
|
||||
import { TempoQuery } from './types';
|
||||
|
||||
export const plugin = new DataSourcePlugin(TempoDatasource)
|
||||
.setQueryEditor(TempoQueryField)
|
||||
.setConfigEditor(ConfigEditor)
|
||||
.setQueryEditorHelp(CheatSheet);
|
||||
|
||||
// Subscribe to on dashboard loaded event so that we can track plugin adoption
|
||||
getAppEvents().subscribe<DashboardLoadedEvent<TempoQuery>>(DashboardLoadedEvent, onDashboardLoadedHandler);
|
||||
|
||||
Reference in New Issue
Block a user