Skip to content

Commit caad642

Browse files
committed
Fix service map popover transaction duration (#58422)
It's already microseconds, so not converting it fixes it. Checked services to see if all metrics match now and they do! Fixes #55679
1 parent b1f6cc2 commit caad642

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

x-pack/legacy/plugins/apm/public/components/app/ServiceMap/Popover/ServiceMetricList.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ import { isNumber } from 'lodash';
1616
import React from 'react';
1717
import styled from 'styled-components';
1818
import { ServiceNodeMetrics } from '../../../../../../../../plugins/apm/common/service_map';
19-
import {
20-
asDuration,
21-
asPercent,
22-
toMicroseconds,
23-
tpmUnit
24-
} from '../../../../utils/formatters';
19+
import { asDuration, asPercent, tpmUnit } from '../../../../utils/formatters';
2520

2621
function LoadingSpinner() {
2722
return (
@@ -70,7 +65,7 @@ export function ServiceMetricList({
7065
}
7166
),
7267
description: isNumber(avgTransactionDuration)
73-
? asDuration(toMicroseconds(avgTransactionDuration, 'milliseconds'))
68+
? asDuration(avgTransactionDuration)
7469
: null
7570
},
7671
{

0 commit comments

Comments
 (0)