Skip to content

Commit

Permalink
feat: add new label for gc metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
weixlu committed Jan 3, 2024
1 parent 6801354 commit 2087c77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void addMetricDuration() {
if (gcEvent.getDuration() == Constant.UNKNOWN_DOUBLE) {
return;
}
result.add(new Metric(timestamp, buildLabel(), "GC_COST_TIME", gcEvent.getDuration()));
result.add(new Metric(timestamp, buildLabel("type", gcEvent.getEventType().getName()), "GC_COST_TIME", gcEvent.getDuration()));
}

private void addMetricPause() {
Expand Down

0 comments on commit 2087c77

Please sign in to comment.