lib/bm/instrumentations/timings/timings.rb
# Creates and configure a [MetricsCollection]
#
# @param base [Class]
Creates and configure a [MetricsCollection]
Creates and configure a [ MetricsCollection ]
def included(base)
        metrics_collection = MetricsCollection.new(
          registry: @registry,
          metrics_prefix: @metrics_prefix,
          class_name: base.name
        )
        base.define_singleton_method(:timings_instrumentation) { metrics_collection }
        base.extend ClassMethods
      end
def included ( base ) metrics_collection = MetricsCollection . new ( registry : @registry , metrics_prefix : @metrics_prefix , class_name : base . name ) base . define_singleton_method ( :timings_instrumentation ) { metrics_collection } base . extend ClassMethods end
Creates and configure a [MetricsCollection]
Creates and configure a [ MetricsCollection ]
base
None