View Source hackney_trace (hackney v1.23.0)

Summary

Functions

stop tracing

start tracing start tracing at level Level and send the result either to the file File, the port Port or to a trace handler.

change the trace level when tracing has already started.

Types

filename/0

-type filename() :: string().

trace_level/0

-type trace_level() :: max | min | integer().

trace_type/0

-type trace_type() :: io | filename() | port() | {fun(), any()}.

Functions

disable()

-spec disable() -> ok.
stop tracing

enable(Level, File)

-spec enable(trace_level(), trace_type()) -> ok.

start tracing start tracing at level Level and send the result either to the file File, the port Port or to a trace handler.

Note: that it starts a tracer server. When Destination is the atom io (or the tuple {io, Verbosity}), %% all (printable) inets trace events (trace_ts events which has %% Severity within Limit) will be written to stdout using io:format.

report_event(Severity, Label, Service, Content)

set_level(Level)

-spec set_level(trace_level()) -> ok | {error, term()}.
change the trace level when tracing has already started.