Skip to content

Commit

Permalink
Fixed display of compositeSpanDurationSummary
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWert committed Jul 28, 2021
1 parent 6ae5a49 commit 086e608
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ export function SpanFlyout({
<Summary
items={[
<TimestampTooltip time={span.timestamp.us / 1000} />,
<DurationSummaryItem
duration={span.span.duration.us}
totalDuration={totalDuration}
parentType="transaction"
/>,
<>
<DurationSummaryItem
duration={span.span.duration.us}
totalDuration={totalDuration}
parentType="transaction"
/>
{span.span.composite && (
<CompositeSpanDurationSummaryItem
count={span.span.composite.count}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,21 @@ function CompositeSpanDurationSummaryItem({ count, durationSum }: Props) {
const avgDuration = durationSum / count;

return (
<>
<EuiToolTip
content={i18n.translate('xpack.apm.compositeSpanDurationLabel', {
defaultMessage: 'Average duration',
<EuiToolTip
content={i18n.translate('xpack.apm.compositeSpanDurationLabel', {
defaultMessage: 'Average duration',
})}
>
<EuiText>
{i18n.translate('xpack.apm.compositeSpanCallsLabel', {
defaultMessage: `, {count} calls, on avg. {duration}`,
values: {
count,
duration: asDuration(avgDuration),
},
})}
>
<EuiText>
{i18n.translate('xpack.apm.compositeSpanCallsLabel', {
defaultMessage: `{count} calls, on avg. {duration}`,
values: {
count,
duration: asDuration(avgDuration),
},
})}
</EuiText>
</EuiToolTip>
</>
</EuiText>
</EuiToolTip>
);
}

Expand Down

0 comments on commit 086e608

Please sign in to comment.