Skip to content

Commit bcb83d2

Browse files
Revert "[DropwizardExport] Allow to override getHelpMessage"
This reverts commit 6f52c40.
1 parent 6f52c40 commit bcb83d2

File tree

2 files changed

+2
-2
lines changed
  • prometheus-metrics-instrumentation-dropwizard/src/main/java/io/prometheus/metrics/instrumentation/dropwizard
  • prometheus-metrics-instrumentation-dropwizard5/src/main/java/io/prometheus/metrics/instrumentation/dropwizard5

2 files changed

+2
-2
lines changed

prometheus-metrics-instrumentation-dropwizard/src/main/java/io/prometheus/metrics/instrumentation/dropwizard/DropwizardExports.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public DropwizardExports(
6969
this.labelMapper = Optional.ofNullable(labelMapper);
7070
}
7171

72-
protected String getHelpMessage(String metricName, Metric metric) {
72+
private static String getHelpMessage(String metricName, Metric metric) {
7373
return String.format(
7474
"Generated from Dropwizard metric import (metric=%s, type=%s)",
7575
metricName, metric.getClass().getName());

prometheus-metrics-instrumentation-dropwizard5/src/main/java/io/prometheus/metrics/instrumentation/dropwizard5/DropwizardExports.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public DropwizardExports(
7272
this.labelMapper = Optional.ofNullable(labelMapper);
7373
}
7474

75-
protected String getHelpMessage(String metricName, Metric metric) {
75+
private static String getHelpMessage(String metricName, Metric metric) {
7676
return String.format(
7777
"Generated from Dropwizard metric import (metric=%s, type=%s)",
7878
metricName, metric.getClass().getName());

0 commit comments

Comments
 (0)