Release Announcement: PrometheusTimer for Elixir

Declan Kennedy
Expert360 Engineering
1 min readJul 24, 2018

--

This is just a short post to say that we’re pleased to announce an early version of a little app we’re using here as an open-source project: PrometheusTimer, an easy to use instrumentation helper for Elixir functions. One of the pieces of feedback we’re always hearing from developers is that they love instrumentation, but find that it can make their code harder to read.

So we took a leaf out of the book of Elixometer, and wrote an app which provides a simple way to add instrumentation to any function through the use of “annotations”. Once configured, adding a function timer is as simple as adding the annotation “timed”, like so:

Now, every time the function is called, a new observation will be added to :function_timers with the labels [module="Timed", function="go"].

The app is in very early stages, and we welcome any feedback or contributions.

--

--