code: public Metrics threadDump() {
      bindings.add((binder, routes, conf) -> {
        routes.use("GET", this.pattern + "/thread-dump", new ThreadDumpHandler());
      });
      return this;
    }
docs: Append a handler that prints thread states (a.k.a thread dump). See {@link ThreadDumpHandler}.
  
  @return This metrics module.