Copyright © 2021 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
metrics_callback/1 | Cowboy metrics callback. |
metrics_callback(Metrics::map()) -> ok
Cowboy metrics callback. For docs about the argument see: https://ninenines.eu/docs/en/cowboy/2.8/manual/cowboy_metrics_h/
The user_data metrics are added by z_sites_dispatcher, z_cowmachine_middleware and via z_context:set_req_metrics/2
The buffer is consumed by z_stats, which interfaces to the loggers.
Basic stats is done on this routine, as the ringbuffer will drop events when the loggers can't keep up with the http requests.Generated by EDoc