Class ResponseTimeMiddleware

Description

Middleware that measures HTTP response times and exposes them as a Prometheus histogram. Also sets the x-response-time response header.

Implements

  • NestMiddleware

Constructors

Properties

Methods

Constructors

Properties

config: IConfig
digits: number
header: string
suffix: boolean
histogram: Histogram<string>

Methods