code: public static Map<String, String> tags(Tags tags) {
          return tags.stream()
                  .map(WavefrontStrings::createTagEntry)
                  .flatMap(opt -> opt.map(Stream::of).orElseGet(Stream::empty))
                  .map(WavefrontStrings::maybeTruncateTagEntry)
                  .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
      }
docs: Create a map of tags for wavefront.
  
  The tag values are escaped and should be surrounded by double quotes.
  This function does not put the surrounding quotes around the tag values.