Skip to content

Commit

Permalink
Fix service map popover transaction duration
Browse files Browse the repository at this point in the history
It's already microseconds, so not converting it fixes it.

Checked services to see if all metrics match now and they do!

Fixes #55679
  • Loading branch information
smith committed Feb 25, 2020
1 parent 3333413 commit 815164a
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@ import { isNumber } from 'lodash';
import React from 'react';
import styled from 'styled-components';
import { ServiceNodeMetrics } from '../../../../../../../../plugins/apm/common/service_map';
import {
asDuration,
asPercent,
toMicroseconds,
tpmUnit
} from '../../../../utils/formatters';
import { asDuration, asPercent, tpmUnit } from '../../../../utils/formatters';

function LoadingSpinner() {
return (
Expand Down Expand Up @@ -70,7 +65,7 @@ export function ServiceMetricList({
}
),
description: isNumber(avgTransactionDuration)
? asDuration(toMicroseconds(avgTransactionDuration, 'milliseconds'))
? asDuration(avgTransactionDuration)
: null
},
{
Expand Down

0 comments on commit 815164a

Please sign in to comment.