View Source Zexbox.Metrics.MetricHandler (Zexbox v1.2.0)

This module is responsible for logging controller metrics to influx

Summary

Functions

This function is called by the Phoenix endpoint when a controller action is finished. It will log the controller metrics to influx.

Functions

Link to this function

handle_event(list, measurements, metadata, config)

View Source
@spec handle_event([atom()], map(), map(), map()) :: any()

This function is called by the Phoenix endpoint when a controller action is finished. It will log the controller metrics to influx.

Examples

iex> Zexbox.Metrics.MetricHandler.handle_event([:phoenix, :endpoint, :stop], measurements, metadata, config)
:ok