Skip to content

Latest commit

 

History

History
101 lines (55 loc) · 2.21 KB

hackney_trace.md

File metadata and controls

101 lines (55 loc) · 2.21 KB

Module hackney_trace

Data Types


filename() = string()

trace_level() = max | min | integer()

trace_type() = io | filename() | port() | {function(), any()}

Function Index

disable/0stop tracing.
enable/2start tracing start tracing at level Level and send the result either to the file File, the port Port or to a trace handler.
report_event/4
set_level/1change the trace level when tracing has already started.

Function Details

disable/0


disable() -> ok

stop tracing

enable/2


enable(Level::trace_level(), File::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/4

report_event(Severity, Label, Service, Content) -> any()

set_level/1


set_level(Level::trace_level()) -> ok | {error, term()}

change the trace level when tracing has already started.