ReportWsTransaction

fun ResponseFilters.ReportWsTransaction(clock: Clock = Clock.systemUTC(), transactionLabeler: WsTransactionLabeler = { it }, recordFn: (WsTransaction) -> Unit): WsFilter

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.


fun ResponseFilters.ReportWsTransaction(timeSource: () -> Instant, transactionLabeler: WsTransactionLabeler = { it }, recordFn: (WsTransaction) -> Unit): WsFilter

General reporting WsFilter for an ReportWsTransaction. Pass an optional WsTransactionLabeler to create custom labels. This is useful for logging metrics. Note that the passed function blocks the response from completing.