et(3erl)
π NAME π
okay bestie, welcome to et(3erl) β the Erlang Module Definition for the Event Trace (ET) app. The star of the show is et, and its whole job is being the Main API of the Event Trace (ET) application. iconic behavior, honestly π
β¨ DESCRIPTION β¨
et is the interface module for the Event Trace (ET) application. Thatβs it, thatβs the vibe: itβs the front door, the group-chat admin, the one you call when you need ET energy π
π EXPORTS π
π trace_me(DetailLevel, From, To, Label, Contents) -> hopefully_traced
trace_me(DetailLevel, From, To, Label, Contents) -> hopefully_traced
π§ Types π§
DetailLevel = integer(X) when X =< 0, X >= 100
From = actor()
To = actor()
Label = atom() | string() | term()
Contents = [{Key, Value}] | term()
actor() = term()
A function that is intended to be traced. Yes, literally designed for the tracing spotlight β¨
This function is intended to be invoked at strategic places in user applications in order to enable simplified tracing. The functions are extremely light weight as they do nothing besides returning an atom. They are designed for being traced. The global tracing mechanism in et_collector defaults to set its trace pattern to these functions. So yeah, this is main-character tracing energy, fr fr π«Ά
The Label is intended to provide a brief summary of the event. It is preferred to use an atom, but a string would also do. Either way, keep it cute and descriptive π
The Contents can be any term, but in order to simplify post processing of the traced events, a plain list of {Key, Value} tuples is preferred. Thatβs the organized-bestie option, and honestly it slays π
Some events, such as messages, are directed from some actor to another. Other events β termed actions β may be undirected and only have one actor. One actor, one vibe, no drama πΈ
π¦ trace_me(DetailLevel, FromTo, Label, Contents) -> hopefully_traced
trace_me(DetailLevel, FromTo, Label, Contents) -> hopefully_traced
This one invokes et:trace_me/5 with both From and To set to FromTo. Same trace energy, one less argument. lowkey convenient, highkey iconic π
πΈ phone_home(DetailLevel, FromTo, Label, Contents) -> hopefully_traced
πΈ phone_home(DetailLevel, From, To, Label, Contents) -> hopefully_traced
phone_home(DetailLevel, FromTo, Label, Contents) -> hopefully_traced
phone_home(DetailLevel, From, To, Label, Contents) -> hopefully_traced
These functions send a signal to the outer space, and the caller hopes that someone is listening. No cap, thatβs the plot π½ In other words, they invoke et:trace_me/4 and et:trace_me/5 respectively. phone_home/4 invokes et:trace_me/4, and phone_home/5 invokes et:trace_me/5. Respectively, bestie, respectively π‘
π report_event(DetailLevel, FromTo, Label, Contents) -> hopefully_traced
π report_event(DetailLevel, From, To, Label, Contents) -> hopefully_traced
report_event(DetailLevel, FromTo, Label, Contents) -> hopefully_traced
report_event(DetailLevel, From, To, Label, Contents) -> hopefully_traced
π¨ Deprecated alert! These are deprecated functions, but for the time being they are kept for backwards compatibility. They invokeet:trace_me/4andet:trace_me/5respectively. So: old signature, still showing up to the function party, politely π«Ά
okay thatβs the whole glow-up π β brought to you by Ericsson AB, stamped et 1.6.5, and signed with the et(3erl) footer. byeeee π«Άβ¨
π¦ where this page comes from
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u1 Β· Apache-2.0
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u4 Β· Apache-2.0
- ubuntu jammy: erlang-manpages 1:24.2.1+dfsg-1 Β· Apache-2.0
- ubuntu jammy: erlang-manpages 1:24.2.1+dfsg-1ubuntu0.8 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms