class OpenTelemetry::Instrument::Counter

Defined in:

instrument/counter.cr

Constructors

Instance Method Summary

Instance methods inherited from class OpenTelemetry::Instrument

attributes : Hash(String, AnyAttribute) attributes, attributes=(attributes : Hash(String, AnyAttribute)) attributes=, description : String description, key_name : String key_name, kind : String kind, labels : Hash(String, String) labels, labels=(labels : Hash(String, String)) labels=, name : String name, unit : String unit

Constructor methods inherited from class OpenTelemetry::Instrument

new(name : String, kind : String, unit : String = "", description : String = "") new

Constructor Detail

def self.new(name, unit = "", variant : NumberClasses = UInt64, description = "") #

Instance Method Detail

def add(value : Int::Unsigned | Float, attributes : Hash(String, ValueTypes) | Nil = nil, labels : Hash(String, String) | Nil = nil) #