src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java
public static String encodeTagsInName(final String name, final Map<String, String> tags) {
        return String.format("TAG(%s)%s", formatTags(tags), sanitize(name));
    }
public static String encodeTagsInName(final String name, final Map<String, String> tags) {
        return String.format("TAG(%s)%s", formatTags(tags), sanitize(name));
    }
public static String encodeTagsInName ( final String name , final Map < String , String > tags ) { return String . format ( "TAG(%s)%s" , formatTags ( tags ) , sanitize ( name ) ) ; }
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 {@link Map} of TSDB tags
@return A metric name encoded with tags.
Add TSDB tags to a CodaHale metric name .