src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java
public static String encodeTagsInName(final String name, final String tags) throws IllegalArgumentException {
        return encodeTagsInName(name, parseTags(tags));
    }
public static String encodeTagsInName(final String name, final String tags) throws IllegalArgumentException {
        return encodeTagsInName(name, parseTags(tags));
    }
Add TSDB tags to a CodaHale metric name.

A CodaHale metric name is a single string, so there is no natural way to encode TSDB tags.
This function formats the tags into the metric name so they can later be parsed by the
Builder. The name is formatted such that it can be appended to create sub-metric names, as
happens with Meter and Histogram.

@param name CodaHale metric name
@param tags A space-delimited string of TSDB key-value pair tags
@return A metric name encoded with tags.
@throws IllegalArgumentException if the tag string is invalid