Nebulex.Telemetry.CacheStatsCounterHandler (Nebulex v3.0.0-rc.1)

View Source

Telemetry handler for aggregating cache stats; it relies on the default Nebulex.Adapters.Common.Info implementation based on Erlang counters. See Nebulex.Adapters.Common.Info.Stats.

Summary

Functions

Attach a new Telemetry handler for handling cache stats.

Functions

attach(counter_ref, telemetry_prefix)

@spec attach(
  counter :: Nebulex.Adapters.Common.Info.Stats.counter(),
  telemetry_prefix :: [atom()]
) ::
  :ok | {:error, :already_exists}

Attach a new Telemetry handler for handling cache stats.