in http-core/src/main/scala/com/twitter/finatra/http/exceptions/ExceptionManager.scala [95:119]
private def statException(
routeInfo: Option[RouteInfo],
request: Request,
throwable: Throwable,
response: Response
): Unit = {
val path: String = routeInfo match {
case Some(info) =>
info.sanitizedPath
case _ =>
RouteInfo.sanitize(request.path)
}
statsReceiver
.counter(
"route",
path,
request.method.toString,
"status",
response.status.code.toString,
"mapped",
exceptionDetails(throwable)
)
.incr()
}