Package io.smallrye.metrics
Class TagsUtils
- java.lang.Object
-
- io.smallrye.metrics.TagsUtils
-
public class TagsUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>parseGlobalTags(String globalTags)Parses the global tags retrieved from environment variableMP_METRICS_TAGS.static org.eclipse.microprofile.metrics.TagparseTag(String kvString)static org.eclipse.microprofile.metrics.Tag[]parseTagsAsArray(String[] kvStrings)
-
-
-
Method Detail
-
parseTag
public static org.eclipse.microprofile.metrics.Tag parseTag(String kvString)
-
parseTagsAsArray
public static org.eclipse.microprofile.metrics.Tag[] parseTagsAsArray(String[] kvStrings)
-
parseGlobalTags
public static Map<String,String> parseGlobalTags(String globalTags) throws IllegalArgumentException
Parses the global tags retrieved from environment variableMP_METRICS_TAGS.- Parameters:
globalTags- the string of global tags retrieved from MP_METRICS_TAGS- Throws:
IllegalArgumentException- if the global tags list does not adhere to the appropriate format.
-
-