HBMetricsMiddleware
public struct HBMetricsMiddleware : HBMiddleware
Middleware recording metrics for each request
Records the number of requests, the request duration and how many errors were thrown. Each metric has additional dimensions URI and method.
-
Undocumented
Declaration
Swift
public init()
-
Undocumented
Declaration
Swift
public func apply(to request: HBRequest, next: HBResponder) -> EventLoopFuture<HBResponse>