private BatchCallback setupReportingToOpenTelemetry() {
    final Meter meter = TelemetryManager.getInstance().getMeter(VFS);

    var queriesCounter = meter.counterBuilder("FileNameCache.queries").buildObserver();
    var totalMissesCounter = meter.counterBuilder("FileNameCache.totalMisses").buildObserver();

    return meter.batchCallback(() -> {
      long cacheMisses = cacheMissesCount.longValue() * TRACK_EACH_NTH_LOOKUP_STATS;
      long totalCacheRequestsServed = (cacheHitsCount.longValue() * TRACK_EACH_NTH_LOOKUP_STATS) + cacheMisses;
      queriesCounter.record(totalCacheRequestsServed);
      totalMissesCounter.record(cacheMisses);
    }, queriesCounter, totalMissesCounter);
  }
private BatchCallback setupReportingToOpenTelemetry()