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().
-type req_measurements() ::
          #{duration := integer(),
            monotonic_time := monotonic_time(),
            req_body_duration => integer(),
            req_body_length => integer(),
            resp_body_length => integer(),
            resp_duration := integer()}.

Functions

Link to this function

event(Event, Name, Req, Resp)

View Source
-spec event(Event, Name, Req, Resp) -> ok
               when
                   Event :: event(),
                   Name :: atom(),
                   Req :: erf:request(),
                   Resp :: undefined | erf:response().