Metrics

object Metrics : Hook<suspend (ApplicationCall) -> Unit>

A hook that is invoked before routing and most of the plugins. Useful for metrics, logging, etc.

Can be renamed or removed from public API in the future.

Report a problem

Functions

Link copied to clipboard
open override fun install(pipeline: ApplicationCallPipeline, handler: suspend (ApplicationCall) -> Unit)

Specifies how to install a hook in the pipeline.