docs: Optional<String> writeTimeGauge(TimeGauge gauge) {
          Double value = gauge.value(getBaseTimeUnit());
          if (Double.isFinite(value)) {
              return Optional.of(writeDocument(gauge, builder -> {
                  builder.append(",\"value\":").append(value);
              }));
          }
          return Optional.empty();
      }