docs: private void writeJsonMetric(JsonMetric jsonMetric, ObjectWriter writer, OutputStream out) throws IOException {
          writer.writeValue(out, new BulkIndexOperationHeader(currentIndexName, jsonMetric.type()));
          out.write("\n".getBytes());
          writer.writeValue(out, jsonMetric);
          out.write("\n".getBytes());
  
          out.flush();
      }