(TK-402) Add note about precedence of metric-prefix and server-id options

Add note to clojure client docs about precendence of `metric-prefix` option if
both it and `server-id` are specified as client options.

Also remove some empty lines.
This commit is contained in:
Ruth Linehan 2016-10-04 11:42:27 -07:00
parent 5237287c2b
commit af9f144e1d
3 changed files with 3 additions and 4 deletions

View file

@ -42,7 +42,9 @@ The following are the base set of options supported by the `create-client` funct
from. If specified, used in the namespace for metrics:
`puppetlabs.<server-id>.http-client.experimental`.
* `:metric-prefix`: a string for the prefix for metrics. If specified, metric
namespace is `<metric-prefix>.http-client.experimental`.
namespace is `<metric-prefix>.http-client.experimental`. If both
`metric-prefix` and `server-id` are specified, `metric-prefix` takes
precendence.
### SSL Options

View file

@ -109,5 +109,4 @@ public class TimerUtils {
return null;
}
}
}

View file

@ -47,8 +47,6 @@ public class Metrics {
public enum MetricType { FULL_RESPONSE }
public enum MetricCategory { URL, URL_AND_METHOD, METRIC_ID }
public static String urlToMetricUrl(String uriString) throws URISyntaxException {
final URI uri = new URI(uriString);
final URI convertedUri = new URI(uri.getScheme(), null, uri.getHost(),