View Source Zexbox.Metrics.MetricHandler (Zexbox v1.4.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

handle_event(list, measurements, metadata, config)

@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