File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ // @ts -ignore
2
3
import { ExplorePanelProps , PanelPlugin , PanelProps } from '@grafana/data' ;
3
4
import FlameGraphContainer from './components/FlameGraphContainer' ;
4
5
@@ -10,4 +11,9 @@ export const FlameExploreGraphPanel: React.FunctionComponent<ExplorePanelProps>
10
11
return < FlameGraphContainer data = { props . data [ 0 ] } /> ;
11
12
} ;
12
13
14
+ // We use ts-ignore here because setExplorePanel and ExplorePanelProps are part of a draft PR that isn't yet merged.
15
+ // We could solve this by linking but that has quite a bit of issues with regard of resolving dependencies downstream
16
+ // in grafana/data and also needs some custom modification in grafana repo so for now this seems to be easier as the
17
+ // there is not that much to the API.
18
+ // @ts -ignore
13
19
export const plugin = new PanelPlugin ( FlameGraphPanel ) . setExplorePanel ( FlameExploreGraphPanel , [ 'profile' ] ) ;
You can’t perform that action at this time.
0 commit comments