http4k / org.http4k.filter / ResponseFilters / ReportRouteLatency
object ReportRouteLatency
Report the latency on a particular route to a callback function. This is useful for logging metrics. Note that the passed function blocks the response from completing.
Name | Summary |
---|---|
invoke | operator fun invoke(clock: Clock = Clock.systemUTC(), recordFn: ( String , Duration ) -> Unit ): Filter |