Chore: fixes jaeger duration value in cascader option label - using milliseconds now instead of microseconds (#25129)

This commit is contained in:
Lukas Siatka 2020-05-27 15:44:41 +02:00 committed by GitHub
parent f795a1577c
commit 03a5e5348d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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',
});
});

View File

@ -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;
}