MetricsFilterImpl

uk.gov.hmrc.play.bootstrap.metrics.MetricsFilterImpl
class MetricsFilterImpl(metrics: Metrics)(implicit val mat: Materializer, val ec: ExecutionContext) extends MetricsFilter

Attributes

Graph
Supertypes
trait Filter
trait EssentialFilter
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def activeRequests: Counter
def apply(nextFilter: RequestHeader => Future[Result])(rh: RequestHeader): Future[Result]

Apply the filter, given the request header and a function to call the next operation.

Apply the filter, given the request header and a function to call the next operation.

Value parameters

f

A function to call the next operation. Call this to continue normally with the current request. You do not need to call this function if you want to generate a result in a different way.

rh

The RequestHeader.

Attributes

def knownStatuses: Seq[Int]

Specify which HTTP status codes have individual metrics

Specify which HTTP status codes have individual metrics

Statuses not specified here are grouped together under otherStatuses

Defaults to 200, 400, 401, 403, 404, 409, 201, 304, 307, 500, which is compatible with prior releases.

Attributes

def labelPrefix: String

Specify a meaningful prefix for metrics

Specify a meaningful prefix for metrics

Defaults to classOf[MetricsFilter].getName for backward compatibility as this was the original set value.

Attributes

def otherStatuses: Meter
def registry: MetricRegistry
def requestsTimer: Timer
def statusCodes: Map[Int, Meter]

Inherited methods

def apply(next: EssentialAction): EssentialAction

Attributes

Inherited from:
Filter
def asJava: EssentialFilter

Attributes

Inherited from:
EssentialFilter

Implicits

Implicits

implicit val ec: ExecutionContext
implicit val mat: Materializer