http4k / org.http4k.filter / ResponseFilters / ReportHttpTransaction
object ReportHttpTransaction
General reporting Filter for an ReportHttpTransaction. Pass an optional HttpTransactionLabeler to create custom labels. 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(), transactionLabeler: HttpTransactionLabeler = { it }, recordFn: ( HttpTransaction ) -> Unit ): Filter |