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,