View Source Unleash.Metrics (Unleash v3.0.0)

GenServer responsible for reporting metrics to the Unleash API Server.

https://docs.getunleash.io/client-specification#metrics

Summary

Types

@type t() :: %{stop: String.t(), start: String.t(), toggles: map()}

Functions

Link to this function

add_metric(arg, pid \\ Unleash.Metrics)

View Source
Link to this function

add_variant_metric(arg, pid \\ Unleash.Metrics)

View Source

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.