-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TraceView - Optimization of queries (#2349)
* optimize trace veiw removing queries Signed-off-by: Adam Tackett <tackadam@amazon.com> * fix date format Signed-off-by: Adam Tackett <tackadam@amazon.com> * update app cypress for rounding Signed-off-by: Adam Tackett <tackadam@amazon.com> * address comments Signed-off-by: Adam Tackett <tackadam@amazon.com> * fix jaeger tree span and overview Signed-off-by: Adam Tackett <tackadam@amazon.com> * match old behavior for jaeger, if an error is present display it in overview Signed-off-by: Adam Tackett <tackadam@amazon.com> * update test to reflect error in jaeger trace Signed-off-by: Adam Tackett <tackadam@amazon.com> * address comments Signed-off-by: Adam Tackett <tackadam@amazon.com> * add cypress test for jaeger tree view Signed-off-by: Adam Tackett <tackadam@amazon.com> * add fallback value for latency Signed-off-by: Adam Tackett <tackadam@amazon.com> * fix sorting on span table Signed-off-by: Adam Tackett <tackadam@amazon.com> * add back total use effect Signed-off-by: Adam Tackett <tackadam@amazon.com> * status code of 2 indicates error Signed-off-by: Adam Tackett <tackadam@amazon.com> * address comments Signed-off-by: Adam Tackett <tackadam@amazon.com> * add sorting support to jaeger span table Signed-off-by: Adam Tackett <tackadam@amazon.com> * address comments, refactor sorting Signed-off-by: Adam Tackett <tackadam@amazon.com> * fix flaky cypress test Signed-off-by: Adam Tackett <tackadam@amazon.com> * combine adding sort, and sorting action Signed-off-by: Adam Tackett <tackadam@amazon.com> * fix jaeger sorting for errors, fix gantt chart error override from text Signed-off-by: Adam Tackett <tackadam@amazon.com> --------- Signed-off-by: Adam Tackett <tackadam@amazon.com> Co-authored-by: Adam Tackett <tackadam@amazon.com>
- Loading branch information
Showing
20 changed files
with
1,552 additions
and
759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
418 changes: 349 additions & 69 deletions
418
public/components/application_analytics/__tests__/__snapshots__/flyout.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
public/components/trace_analytics/components/common/constants.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
// Conversion factor for nanoseconds to milliseconds | ||
export const NANOS_TO_MS = 1e6; | ||
|
||
export const MILI_TO_SEC = 1000; | ||
|
||
export const pieChartColors = [ | ||
'#7492e7', | ||
'#c33d69', | ||
'#2ea597', | ||
'#8456ce', | ||
'#e07941', | ||
'#3759ce', | ||
'#ce567c', | ||
'#9469d6', | ||
'#4066df', | ||
'#da7596', | ||
]; | ||
|
||
export interface Span { | ||
traceId: string; | ||
spanId: string; | ||
traceState: string; | ||
parentSpanId: string; | ||
name: string; | ||
kind: string; | ||
startTime: string; | ||
endTime: string; | ||
durationInNanos: number; | ||
serviceName: string; | ||
events: any[]; | ||
links: any[]; | ||
droppedAttributesCount: number; | ||
droppedEventsCount: number; | ||
droppedLinksCount: number; | ||
traceGroup: string; | ||
traceGroupFields: { | ||
endTime: string; | ||
durationInNanos: number; | ||
statusCode: number; | ||
}; | ||
status: { | ||
code: number; | ||
}; | ||
instrumentationLibrary: { | ||
name: string; | ||
version: string; | ||
}; | ||
} | ||
|
||
export interface ParsedHit { | ||
_index: string; | ||
_id: string; | ||
_score: number; | ||
_source: Span; | ||
sort?: any[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.