Module: StackifyRubyAPM::Normalizers Private

Defined in:
lib/stackify_apm/normalizers.rb,
lib/stackify_apm/normalizers/action_view.rb,
lib/stackify_apm/normalizers/action_mailer.rb,
lib/stackify_apm/normalizers/active_record.rb,
lib/stackify_apm/normalizers/action_controller.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Modules: ActionController, ActionMailer, ActionView, ActiveRecord Classes: Collection, Normalizer

Class Method Summary collapse

Class Method Details

.build(config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



26
27
28
29
30
31
# File 'lib/stackify_apm/normalizers.rb', line 26

def self.build(config)
  normalizers = @registered.each_with_object({}) do |(name, klass), built|
    built[name] = klass.new(config)
  end
  Collection.new(normalizers)
end

.register(name, klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
24
# File 'lib/stackify_apm/normalizers.rb', line 21

def self.register(name, klass)
  @registered ||= {}
  @registered[name] = klass
end