support hdr_digits instead of hdr-digits in activity params

This commit is contained in:
Jonathan Shook
2020-05-21 11:09:19 -05:00
parent 9a2c045f50
commit c66e511da4
3 changed files with 8 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ public class ActivityMetrics {
private final static Logger logger = LoggerFactory.getLogger(ActivityMetrics.class);
public static final String HDRDIGITS_PARAM = "hdr-digits";
public static final String HDRDIGITS_PARAM = "hdr_digits";
public static final int DEFAULT_HDRDIGITS= 4;
private static int _HDRDIGITS = DEFAULT_HDRDIGITS;
@@ -103,7 +103,7 @@ public class ActivityMetrics {
/**
* <p>Create a timer associated with an activity.</p>
*
* <p>If the provide ActivityDef contains a parameter "hdr-digits", then it will be used to set the number of
* <p>If the provide ActivityDef contains a parameter "hdr_digits", then it will be used to set the number of
* significant digits on the histogram's precision.</p>
*
* <p>This method ensures that if multiple threads attempt to create the same-named metric on a given activity,
@@ -128,7 +128,7 @@ public class ActivityMetrics {
/**
* <p>Create an HDR histogram associated with an activity.</p>
*
* <p>If the provide ActivityDef contains a parameter "hdr-digits", then it will be used to set the number of
* <p>If the provide ActivityDef contains a parameter "hdr_digits", then it will be used to set the number of
* significant digits on the histogram's precision.</p>
*
* <p>This method ensures that if multiple threads attempt to create the same-named metric on a given activity,