class

Session::Metrics::LogBackend

Inherits Session::Metrics::Backend < Reference < Object

Log backend - logs all metrics to the session logger

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