prometheus.ex v3.0.5 Release Notes

Release Date: 2019-01-24 // about 5 years ago

Previous changes from v2.0.0

  • ๐Ÿ’ฅ Breaking change:

    All observe_duration/track_inprogress functions no longer do implicit fun execution.

    def track\_checked\_out\_sockets(checkout\_fun) doGauge.track\_inprogress([name: :my\_pool\_checked\_out], checkout\_fun)end
    

    has to be rewritten as

    def track\_checked\_out\_sockets(checkout\_fun) doGauge.track\_inprogress([name: :my\_pool\_checked\_out], checkout\_fun.())end
    

    Counter

    ๐Ÿ†• New helper macros:

    • ๐Ÿ‘ป count_exceptions [with optional Exception type]
    • count_no_exceptions

    Metrics

    Metrics can be created declaratively:

    @histogram [name: :http\_request\_duration\_milliseconds, labels: [:method], buckets: [100, 300, 500, 750, 1000], help: "Http Request execution time"]
    

    when used, __declare_prometheus_metrics__ /0 will be auto-generated.