View Source Regulator.Telemetry (Regulator v0.6.0)
Regulator produces multiple telemetry events.
Events
[:regulator, :limit]
- Returns the calculated limitMeasurements
:limit
- The new limit
Metadata
: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 time
Metadata
:regulator
- The regulator name
[:regulator, :ask, :stop]
- Called immediately before anask
call returns.Measurements
:duration
- The amount of time taken in the regulator
Metadata
:regulator
- The name of the regulator:result
- The result of the call, either:ok
,:dropped
,:error
, or:ignore
[:regulator, :ask, :exception]
- Called if the callback passed toask
raises or throwsMeasurements
:duration
- The amount of time taken in the regulator
Metadata
:kind
- The type of error:error
- The error:stacktrace
- The stacktrace:regulator
- The regulator name