Skip to content

Commit

Permalink
Fix typo in fetch_visualization metrics name (#192) (#193)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
(cherry picked from commit 9024b2e)

Co-authored-by: Joshua Li <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and joshuali925 authored Jan 24, 2023
1 parent 90b4d12 commit 093f2f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/routes/notebooks/vizRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function registerVizRoute(router: IRouter) {
request,
response
): Promise<IOpenSearchDashboardsResponse<any | ResponseError>> => {
addRequestToMetric('notebooks', 'visualization', 'count');
addRequestToMetric('notebooks', 'fetch_visualization', 'count');
const params: RequestParams.Search = {
index: '.kibana',
size: NOTEBOOKS_FETCH_SIZE,
Expand All @@ -44,7 +44,7 @@ export function registerVizRoute(router: IRouter) {
body: { savedVisualizations: vizResponse },
});
} catch (error) {
addRequestToMetric('notebooks', 'visualization', error);
addRequestToMetric('notebooks', 'fetch_visualization', error);
return response.custom({
statusCode: error.statusCode || 500,
body: error.message,
Expand Down

0 comments on commit 093f2f2

Please sign in to comment.