Module zotonic_listen_http_metrics

Metrics for the http listener.

Copyright © 2021 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Metrics for the http listener.

Function Index

metrics_callback/1Cowboy metrics callback.

Function Details

metrics_callback/1

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