Nexus API Reference

HttpMetricsListener
in package

FinalYes
Tags
psalm-api

PSR-14 listener that records RED metrics from the HTTP request lifecycle events. Register onRequestStarted for RequestStarted and onRequestCompleted for RequestCompleted. No-op when observability is disabled. Metric dimensions are deliberately low-cardinality (method + status code) to keep the metrics backend healthy.

Table of Contents

Methods

__construct()  : mixed
onRequestCompleted()  : void
onRequestStarted()  : void

Methods


        
On this page

Search results