Regulator.Telemetry (Regulator v0.4.1) View Source
Regulator produces multiple telemetry events.
Events
[:regulator, :limit]- Returns the calculated limitMeasurements
:limit- The new limitMetadata
:regulator- The name of the regulator
[:regulator, :ask, :start]- Is called when asking for access to a protected serviceMeasurements
:inflight- The current inflight requests:system_time- The current, monotonic system timeMetadata
:regulator- The regulator name
[:regulator, :ask, :stop]- Called immediately before anaskcall returns.Measurements
:duration- The amount of time taken in the regulatorMetadata
:regulator- The name of the regulator:result- The result of the call, either:ok,:dropped,:drop, or:ignore
[:regulator, :ask, :exception]- Called if the callback passed toaskraises or throwsMeasurements
:duration- The amount of time taken in the regulatorMetadata
:kind- The type of error:error- The error:stacktrace- The stacktrace:regulator- The regulator name