private synchronized void drainValuesToOtel() {
    if (competingThreadsHisto.getTotalCount() > 0) {
      competingThreadsAvg.record(competingThreadsHisto.getMean());
      competingThreads90P.record(competingThreadsHisto.getValueAtPercentile(90));
      competingThreadsMax.record(competingThreadsHisto.getMaxValue());

      competingThreadsHisto.reset();
    }
    else {
      competingThreadsAvg.record(0);
      competingThreads90P.record(0);
      competingThreadsMax.record(0);
    }
  }
private synchronized void drainValuesToOtel()