Class TagsUtils


  • public class TagsUtils
    extends Object
    • 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 variable MP_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.