View Source erf_telemetry (erf v0.1.2)
Summary
Types
-type event() :: {request_start, #{monotonic_time := monotonic_time()}} | {request_complete, req_measurements()} | {request_exception, exception_data()}.
-type exception_data() :: #{error := binary(), monotonic_time := monotonic_time(), stacktrace => binary()}.
-type monotonic_time() :: integer().
Functions
-spec event(Event, Name, Req, Resp) -> ok when Event :: event(), Name :: atom(), Req :: erf:request(), Resp :: undefined | erf:response().