code: public static void ignoreMetrics(Runnable r) {
          ignoreMetrics.set(true);
          r.run();
          ignoreMetrics.remove();
      }
docs: Used by {@link Counter#increment()} implementations that may cause a logback logging event to occur.
  Attempting to instrument that implementation would cause a {@link StackOverflowError}.
  
  @param r Don't record metrics on logging statements that occur inside of this runnable.