Skip to content

Commit

Permalink
Add Pixi flamechart route to query Elasticsearch (#23)
Browse files Browse the repository at this point in the history
* Refactor flamegraph query into separate method

* Rename registration method for Elastic flamechart

* Register route for Pixi flamechart
  • Loading branch information
jbcrail authored Mar 2, 2022
1 parent e0bf3d9 commit 36cecc3
Show file tree
Hide file tree
Showing 2 changed files with 273 additions and 223 deletions.
9 changes: 7 additions & 2 deletions src/plugins/profiling/server/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ import {
registerTraceEventsTopNThreadsRoute,
} from './load_topn';

import { registerFlameChartSearchRoute } from './search_flamechart';
import {
registerFlameChartElasticSearchRoute,
registerFlameChartPixiSearchRoute,
} from './search_flamechart';

import {
registerTraceEventsTopNContainersSearchRoute,
registerTraceEventsTopNDeploymentsSearchRoute,
Expand All @@ -34,7 +38,8 @@ export function registerRoutes(router: IRouter<DataRequestHandlerContext>, logge
registerTraceEventsTopNStackTracesRoute(router);
registerTraceEventsTopNThreadsRoute(router);

registerFlameChartSearchRoute(router, logger!);
registerFlameChartElasticSearchRoute(router, logger!);
registerFlameChartPixiSearchRoute(router, logger!);
registerTraceEventsTopNContainersSearchRoute(router);
registerTraceEventsTopNDeploymentsSearchRoute(router);
registerTraceEventsTopNHostsSearchRoute(router);
Expand Down
Loading

0 comments on commit 36cecc3

Please sign in to comment.