Skip to content

Commit

Permalink
Fix service map popover transaction duration (#58422) (#58593)
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 authored Feb 26, 2020
1 parent ebb04c7 commit 2ebec21
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 2ebec21

Please sign in to comment.