abstract class Session::Metrics::Backend

Overview

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

Direct Known Subclasses

Defined in:

metrics.cr

Instance Method Summary

Instance Method Detail

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

Record a gauge value


[View source]
abstract def increment(name : String, tags : Hash(String, String) = {} of String => String) : Nil #

Record a counter increment


[View source]
abstract def timing(name : String, duration : Time::Span, tags : Hash(String, String) = {} of String => String) : Nil #

Record a timing/duration


[View source]