Skip to content

Commit

Permalink
Remove throughput from LongTaskTimer output
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan-ivanov committed Jan 29, 2025
1 parent 5543b25 commit 7f9a738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ protected void publish() {
return;
HistogramSnapshot snapshot = longTaskTimer.takeSnapshot();
loggingSink.accept(print.id() + " active=" + wholeOrDecimal(activeTasks) + " duration="
+ print.time(longTaskTimer.duration(getBaseTimeUnit())) + " throughput="
+ print.unitlessRate(activeTasks) + " mean=" + print.time(snapshot.mean(getBaseTimeUnit()))
+ " max=" + print.time(snapshot.max(getBaseTimeUnit())));
+ print.time(longTaskTimer.duration(getBaseTimeUnit())) + " mean="
+ print.time(snapshot.mean(getBaseTimeUnit())) + " max="
+ print.time(snapshot.max(getBaseTimeUnit())));
}, timeGauge -> {
double value = timeGauge.value(getBaseTimeUnit());
if (!config.logInactive() && value == 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ void publishShouldPrintActiveCountAndDurationWhenMeterIsLongTaskTimer() {
IntStream.rangeClosed(1, 30).forEach(t -> timer.start());
clock.add(config.step());
recordingRegistry.publish();
assertThat(recordingRegistry.getLogs())
.containsExactly("my.ltt{} active=30 duration=30m throughput=0.5/s mean=1m max=1m");
assertThat(recordingRegistry.getLogs()).containsExactly("my.ltt{} active=30 duration=30m mean=1m max=1m");
}

@Test
Expand Down

0 comments on commit 7f9a738

Please sign in to comment.