public class TagsUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
parseGlobalTags(String globalTags)
Parses the global tags retrieved from environment variable
MP_METRICS_TAGS. |
static org.eclipse.microprofile.metrics.Tag |
parseTag(String kvString) |
static org.eclipse.microprofile.metrics.Tag[] |
parseTagsAsArray(String[] kvStrings) |
public static org.eclipse.microprofile.metrics.Tag parseTag(String kvString)
public static org.eclipse.microprofile.metrics.Tag[] parseTagsAsArray(String[] kvStrings)
public static Map<String,String> parseGlobalTags(String globalTags) throws IllegalArgumentException
MP_METRICS_TAGS.globalTags - the string of global tags retrieved from MP_METRICS_TAGSIllegalArgumentException - if the global tags list does not adhere to
the appropriate format.Copyright © 2018–2021. All rights reserved.