Skip to content

Commit

Permalink
[DropwizardExport] Allow to override getHelpMessage
Browse files Browse the repository at this point in the history
Signed-off-by: Kacper Filutowski <[email protected]>
  • Loading branch information
KacperFilutowski-TomTom committed Jan 22, 2025
1 parent f3f318b commit 6f52c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public DropwizardExports(
this.labelMapper = Optional.ofNullable(labelMapper);
}

private static String getHelpMessage(String metricName, Metric metric) {
protected String getHelpMessage(String metricName, Metric metric) {
return String.format(
"Generated from Dropwizard metric import (metric=%s, type=%s)",
metricName, metric.getClass().getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public DropwizardExports(
this.labelMapper = Optional.ofNullable(labelMapper);
}

private static String getHelpMessage(String metricName, Metric metric) {
protected String getHelpMessage(String metricName, Metric metric) {
return String.format(
"Generated from Dropwizard metric import (metric=%s, type=%s)",
metricName, metric.getClass().getName());
Expand Down

0 comments on commit 6f52c40

Please sign in to comment.