The “How”s, “What”s, and “Why”s of Elixir Telemetry
There are four steps to follow to set up Telemetry in your project: 1) Install the library; 2) “attach” the Telemetry supervisor to your project; 3) Define the “events” to capture; 4) “Execute” against those events. By including Telemetry in your project’s list of dependencies, you automatically get access to its emitted events. By including Telemetry as a dependency, Ecto will automatically start sending events for every query to the event, `[:my_app, :repo, :query].
Source: samuelmullen.com