code: public void truncateStream(String scope, String streamName, Duration latency) {
          DYNAMIC_LOGGER.incCounterValue(globalMetricName(TRUNCATE_STREAM), 1);
          DYNAMIC_LOGGER.incCounterValue(TRUNCATE_STREAM, 1, streamTags(scope, streamName));
          truncateStreamLatency.reportSuccessValue(latency.toMillis());
      }
docs: This method increments the global and Stream-specific counters of Stream truncations and reports the latency of
  the operation.
  
  @param scope         Scope.
  @param streamName    Name of the Stream.
  @param latency       Latency of the truncateStream operation.