Sha256: 35013959ac44c70f7828da5590f8a12b0c2580d8feabcaf19113bed90971e53a

Contents?: true

Size: 325 Bytes

Versions: 11

Compression:

Stored size: 325 Bytes

Contents

module Nanoc::Telemetry
  class Registry
    def initialize
      @counters = {}
      @summaries = {}
    end

    def counter(name)
      @counters.fetch(name) { @counters[name] = LabelledCounter.new }
    end

    def summary(name)
      @summaries.fetch(name) { @summaries[name] = LabelledSummary.new }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
nanoc-4.7.9 lib/nanoc/telemetry/registry.rb
nanoc-4.7.8 lib/nanoc/telemetry/registry.rb
nanoc-4.7.7 lib/nanoc/telemetry/registry.rb
nanoc-4.7.6 lib/nanoc/telemetry/registry.rb
nanoc-4.7.5 lib/nanoc/telemetry/registry.rb
nanoc-4.7.4 lib/nanoc/telemetry/registry.rb
nanoc-4.7.3 lib/nanoc/telemetry/registry.rb
nanoc-4.7.2 lib/nanoc/telemetry/registry.rb
nanoc-4.7.1 lib/nanoc/telemetry/registry.rb
nanoc-4.7.0 lib/nanoc/telemetry/registry.rb
nanoc-4.6.4 lib/nanoc/telemetry/registry.rb