Skip to content

Commit

Permalink
Merge pull request #47 from digma-ai/feature/endpoint-query-optimization
Browse files Browse the repository at this point in the history
Added endpoint query optimization insight
  • Loading branch information
ohrebeniuk authored Feb 6, 2024
2 parents d28a44e + 9bc5202 commit bcd32bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ export enum InsightType {
EndpointChattyApi = 'EndpointChattyApi',
EndpointHighNumberOfQueries = 'EndpointHighNumberOfQueries',
SpanNexus = "SpanNexus",
SpanQueryOptimization = "SpanQueryOptimization"
SpanQueryOptimization = "SpanQueryOptimization",
EndpointQueryOptimization = "EndpointQueryOptimization"
}
5 changes: 5 additions & 0 deletions packages/jaeger-ui/src/components/common/InsightIcon/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export const getInsightTypeInfo = (
[InsightType.SpanQueryOptimization]: {
icon: SQLDatabaseIcon,
label: "Query Optimization Suggested"
},
[InsightType.EndpointQueryOptimization]: {
icon: SQLDatabaseIcon,
label: "Query Optimization Suggested"
}
};

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bcd32bb

Please sign in to comment.