mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 09:05:45 -06:00
* grafana_tempo_dashboard_loaded * Update version * Updates * Added more tracking stats + updates
18 lines
775 B
TypeScript
18 lines
775 B
TypeScript
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);
|