# `Zexbox.Metrics.MetricHandler`
[🔗](https://github.com/Intellection/zexbox/blob/main/lib/zexbox/metrics/metric_handler.ex#L1)

This module is responsible for logging controller metrics to influx

# `handle_event`

```elixir
@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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
