<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Sun, Jan 26, 2020, at 05:58, Frank Muller wrote:<br></div><blockquote type="cite" id="qt"><div><span style="color:rgb(49, 49, 49)" class="colour">Is that doable?</span><br></div><div dir="auto"><div><span style="color:rgb(49, 49, 49)" class="colour">If yes, can I apply like this logic to all modules running in my Erlang node?</span><br></div></div></blockquote><div><br></div><div>The cases you mention are exactly why it is best to not attempt to apply the logic throughout the code automatically but to write it manually where it makes sense to do so. Except in the case of live tracing, where you can use matchspecs to setup traces on functions you care about.<br></div><div><br></div><div>I'd also suggest checking out existing instrumentation libraries for Erlang, so maybe you don't need to write your own: <br></div><div><br></div><div>- <a href="https://github.com/open-telemetry/opentelemetry-erlang-api/">https://github.com/open-telemetry/opentelemetry-erlang-api/</a> implementation of the <a href="https://opentelemetry.io/">https://opentelemetry.io/</a> spec.<br></div><div><br></div><div>- <a href="https://github.com/beam-telemetry/telemetry">https://github.com/beam-telemetry/telemetry</a><br></div><div><br></div><div>As well as the Foundation's Observability working group, <a href="https://github.com/erlef/eef-observability-wg/">https://github.com/erlef/eef-observability-wg/</a><br></div><div><br></div><div>Tristan<br></div></body></html>