Instrumenting Erlang code

Tristan Sloughter t@REDACTED
Sun Jan 26 20:22:57 CET 2020


On Sun, Jan 26, 2020, at 05:58, Frank Muller wrote:
> Is that doable?
> If yes, can I apply like this logic to all modules running in my Erlang node?

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.

I'd also suggest checking out existing instrumentation libraries for Erlang, so maybe you don't need to write your own: 

- https://github.com/open-telemetry/opentelemetry-erlang-api/ implementation of the https://opentelemetry.io/ spec.

- https://github.com/beam-telemetry/telemetry

As well as the Foundation's Observability working group, https://github.com/erlef/eef-observability-wg/

Tristan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200126/6f131274/attachment.htm>


More information about the erlang-questions mailing list