class

Session::Metrics::Backend

Inherits Reference < Object

Abstract metrics backend - implement this to integrate with your metrics system

Instance methods

gauge(name : String, value : Float64, tags : Hash(String, String) = {} of String => String) : Nil

Record a gauge value

Source
increment(name : String, tags : Hash(String, String) = {} of String => String) : Nil

Record a counter increment

Source
timing(name : String, duration : Time::Span, tags : Hash(String, String) = {} of String => String) : Nil

Record a timing/duration

Source