docs: Optional<String> writeSummary(DistributionSummary summary) {
          summary.takeSnapshot();
          return Optional.of(writeDocument(summary, builder -> {
              builder.append(",\"count\":").append(summary.count());
              builder.append(",\"sum\":").append(summary.totalAmount());
              builder.append(",\"mean\":").append(summary.mean());
              builder.append(",\"max\":").append(summary.max());
          }));
      }