Chore: fixes jaeger duration value in cascader option label - using milliseconds now instead of microseconds (#25129)
(cherry picked from commit 03a5e5348d)
This commit is contained in:
committed by
Marcus Andersson
parent
d072718d1a
commit
731c3e918d
@@ -67,7 +67,7 @@ describe('JaegerQueryField', function() {
|
||||
|
||||
wrapper.update();
|
||||
expect(wrapper.find(ButtonCascader).props().options[0].children[1].children[0]).toEqual({
|
||||
label: 'rootOp [99 ms]',
|
||||
label: 'rootOp [0.099 ms]',
|
||||
value: '12345',
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ function findRootSpan(spans: Span[]): Span | undefined {
|
||||
function getLabelFromTrace(trace: TraceData & { spans: Span[] }): string {
|
||||
const rootSpan = findRootSpan(trace.spans);
|
||||
if (rootSpan) {
|
||||
return `${rootSpan.operationName} [${rootSpan.duration} ms]`;
|
||||
return `${rootSpan.operationName} [${rootSpan.duration / 1000} ms]`;
|
||||
}
|
||||
return trace.traceID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user