docs: void recordDuration( DurationMetric metric,
                           long duration,
                           TimeUnit timeUnit,
                           Map<String, String> payload ) {
          assert metric != null;
          DurationHistory history = durations.get(metric);
          if (history != null) history.recordDuration(duration, timeUnit, payload);
      }