private[this] def countPerMethodStats()

in thrift/src/main/scala/com/twitter/finatra/thrift/filters/StatsFilter.scala [216:234]


    private[this] def countPerMethodStats(
      stats: Option[ThriftMethodStats],
      responseClass: ResponseClass,
      response: Try[_]
    ): Unit = response match {
      case Throw(e) =>
        stats.foreach { perMethodStats =>
          responseClass match {
            case ResponseClass.Successful(_) =>
              perMethodStats.successesScope.counter(e.getClass.getName).incr()
            case ResponseClass.Failed(_) =>
              perMethodStats.failuresScope.counter(e.getClass.getName).incr()
            case ResponseClass.Ignorable =>
              perMethodStats.ignoredScope.counter(e.getClass.getName).incr()
          }
        }
      case _ =>
      // do nothing
    }