From d3ae440b6cba1a6050c7e6b94d77f293575bb861 Mon Sep 17 00:00:00 2001 From: oleksandrh Date: Fri, 26 Jan 2024 15:59:41 +0200 Subject: [PATCH] Added new insights --- .../src/components/common/InsightIcon/types.ts | 2 ++ .../src/components/common/InsightIcon/utils.ts | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/packages/jaeger-ui/src/components/common/InsightIcon/types.ts b/packages/jaeger-ui/src/components/common/InsightIcon/types.ts index 321fe751e1..1c8bf591c3 100644 --- a/packages/jaeger-ui/src/components/common/InsightIcon/types.ts +++ b/packages/jaeger-ui/src/components/common/InsightIcon/types.ts @@ -29,4 +29,6 @@ export enum InsightType { EndpointSessionInView = 'EndpointSessionInView', EndpointChattyApi = 'EndpointChattyApi', EndpointHighNumberOfQueries = 'EndpointHighNumberOfQueries', + SpanNexus = "SpanNexus", + SpanQueryOptimization = "SpanQueryOptimization" } diff --git a/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts b/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts index 611725004a..4f66ceeba4 100644 --- a/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts +++ b/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts @@ -106,6 +106,14 @@ export const getInsightTypeInfo = ( icon: SQLDatabaseIcon, label: 'High number of queries', }, + [InsightType.SpanNexus]: { + icon: BottleneckIcon, // todo changes + label: "Code Nexus Point" + }, + [InsightType.SpanQueryOptimization]: { + icon: SQLDatabaseIcon, + label: "Query Optimization Suggested" + } }; return insightInfoMap[type]; @@ -141,6 +149,8 @@ export const getInsightTypeOrderPriority = (type: string): number => { [InsightType.SpanDurationChange]: 66, [InsightType.SpanEndpointBottleneck]: 67, [InsightType.SpanDurationBreakdown]: 68, + [InsightType.SpanNexus]: 69, + [InsightType.SpanQueryOptimization]: 70, [InsightType.EndpointSpanNPlusOne]: 55, [InsightType.EndpointSessionInView]: 56,