From 9bc5202922569612c2cdb19186c3c6abd2c6b164 Mon Sep 17 00:00:00 2001 From: oleksandrh Date: Tue, 6 Feb 2024 12:28:30 +0200 Subject: [PATCH] Added endpoint query optimization insight --- .../jaeger-ui/src/components/common/InsightIcon/types.ts | 3 ++- .../jaeger-ui/src/components/common/InsightIcon/utils.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/jaeger-ui/src/components/common/InsightIcon/types.ts b/packages/jaeger-ui/src/components/common/InsightIcon/types.ts index 1c8bf591c3..eed1d8514b 100644 --- a/packages/jaeger-ui/src/components/common/InsightIcon/types.ts +++ b/packages/jaeger-ui/src/components/common/InsightIcon/types.ts @@ -30,5 +30,6 @@ export enum InsightType { EndpointChattyApi = 'EndpointChattyApi', EndpointHighNumberOfQueries = 'EndpointHighNumberOfQueries', SpanNexus = "SpanNexus", - SpanQueryOptimization = "SpanQueryOptimization" + SpanQueryOptimization = "SpanQueryOptimization", + EndpointQueryOptimization = "EndpointQueryOptimization" } diff --git a/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts b/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts index 4f66ceeba4..4b14023f8d 100644 --- a/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts +++ b/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts @@ -113,6 +113,10 @@ export const getInsightTypeInfo = ( [InsightType.SpanQueryOptimization]: { icon: SQLDatabaseIcon, label: "Query Optimization Suggested" + }, + [InsightType.EndpointQueryOptimization]: { + icon: SQLDatabaseIcon, + label: "Query Optimization Suggested" } }; @@ -156,6 +160,7 @@ export const getInsightTypeOrderPriority = (type: string): number => { [InsightType.EndpointSessionInView]: 56, [InsightType.EndpointChattyApi]: 57, [InsightType.EndpointHighNumberOfQueries]: 58, + [InsightType.EndpointQueryOptimization]: 59, [InsightType.SlowestSpans]: 40, [InsightType.LowUsage]: 30, [InsightType.NormalUsage]: 50,