Commit 03a5e534 by Lukas Siatka Committed by GitHub

Chore: fixes jaeger duration value in cascader option label - using milliseconds…

Chore: fixes jaeger duration value in cascader option label - using milliseconds now instead of microseconds (#25129)
parent f795a157
...@@ -67,7 +67,7 @@ describe('JaegerQueryField', function() { ...@@ -67,7 +67,7 @@ describe('JaegerQueryField', function() {
wrapper.update(); wrapper.update();
expect(wrapper.find(ButtonCascader).props().options[0].children[1].children[0]).toEqual({ expect(wrapper.find(ButtonCascader).props().options[0].children[1].children[0]).toEqual({
label: 'rootOp [99 ms]', label: 'rootOp [0.099 ms]',
value: '12345', value: '12345',
}); });
}); });
......
...@@ -21,7 +21,7 @@ function findRootSpan(spans: Span[]): Span | undefined { ...@@ -21,7 +21,7 @@ function findRootSpan(spans: Span[]): Span | undefined {
function getLabelFromTrace(trace: TraceData & { spans: Span[] }): string { function getLabelFromTrace(trace: TraceData & { spans: Span[] }): string {
const rootSpan = findRootSpan(trace.spans); const rootSpan = findRootSpan(trace.spans);
if (rootSpan) { if (rootSpan) {
return `${rootSpan.operationName} [${rootSpan.duration} ms]`; return `${rootSpan.operationName} [${rootSpan.duration / 1000} ms]`;
} }
return trace.traceID; return trace.traceID;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment