code: public static LogMetadata of(String key, Object value) {
          Map<String, Object> map = new HashMap<>();
          map.put(key, value);
          return new LogMetadata(map);
      }
docs: Create a new metadata marker with a single key-value pair.
  @param key the key to add
  @param value the value to add for that key