TelemetricEvents.Prometheus behaviour (telemetric_events v0.2.0)

A behaviour to handle Prometheus observations along with default behaviour. To use the default behaviour simply call use TelemetricEvents.Prometheus, otherwise implement the callbacks like you would do with any behaviour.

Link to this section Summary

Link to this section Callbacks

Link to this callback

observe(event_name, event_measurements)

Specs

observe(
  event_name :: [atom()],
  event_measurements :: %{required(atom()) => number() | String.t()}
) :: :ok

Specs

setup() :: :ok