class
Session::Metrics::LogBackend
- Session::Metrics::LogBackend
- Session::Metrics::Backend
- Reference
- Object
Overview
Log backend - logs all metrics to the session logger
Defined in:
metrics.crInstance Method Summary
-
#gauge(name : String, value : Float64, tags : Hash(String, String) = {} of String => String) : Nil
Record a gauge value
-
#increment(name : String, tags : Hash(String, String) = {} of String => String) : Nil
Record a counter increment
-
#timing(name : String, duration : Time::Span, tags : Hash(String, String) = {} of String => String) : Nil
Record a timing/duration
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
Description copied from class Session::Metrics::Backend
Record a counter increment
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