Emits :telemetry events around RPC calls.
Events:
[:easy_rpc, :call, :start]— before the RPC call[:easy_rpc, :call, :stop]— on success[:easy_rpc, :call, :exception]— on failure
Attach your own handler to collect metrics:
:telemetry.attach(
"my-rpc-handler",
[:easy_rpc, :call, :stop],
fn meta, measurements -> ... end,
nil
)Dependencies
This plug requires :telemetry in your dependencies:
{:telemetry, "~> 1.0"}If :telemetry is not available, events are silently skipped.