class Session::Metrics::LogBackend

Overview

Log backend - logs all metrics to the session logger

Defined in:

metrics.cr

Instance Method Summary

Instance methods inherited from class Session::Metrics::Backend

gauge(name : String, value : Float64, tags : Hash(String, String) = {} of String => String) : Nil gauge, increment(name : String, tags : Hash(String, String) = {} of String => String) : Nil increment, timing(name : String, duration : Time::Span, tags : Hash(String, String) = {} of String => String) : Nil timing

Instance Method Detail

def gauge(name : String, value : Float64, tags : Hash(String, String) = {} of String => String) : Nil #
Description copied from class Session::Metrics::Backend

Record a gauge value


[View source]
def increment(name : String, tags : Hash(String, String) = {} of String => String) : Nil #
Description copied from class Session::Metrics::Backend

Record a counter increment


[View source]
def timing(name : String, duration : Time::Span, tags : Hash(String, String) = {} of String => String) : Nil #
Description copied from class Session::Metrics::Backend

Record a timing/duration


[View source]