Skip to content

Commit

Permalink
Don't emit a separate TYPE line for the 'sum' component of a timer
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed Oct 19, 2021
1 parent 59cf49b commit 2063e42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private void writeTimerValues(StringBuilder sb, MetricRegistry.Type scope, Timer
writeHelpLine(sb, scope, md.getName(), md, theUnit);
writeTypeLine(sb, scope, md.getName(), md, theUnit, SUMMARY);
writeValueLine(sb, scope, theUnit + "_count", timer.getCount(), md, tags, false);
writeTypeAndValue(sb, scope, theUnit + "_sum", timer.getElapsedTime().toNanos(), GAUGE, md, true, tags);
writeValueLine(sb, scope, theUnit + "_sum", timer.getElapsedTime().toNanos(), md, tags);

writeSnapshotQuantiles(sb, scope, md, snapshot, theUnit, true, tags);
}
Expand Down

0 comments on commit 2063e42

Please sign in to comment.