Module: ElasticAPM::Normalizers Private

Defined in:
lib/elastic_apm/normalizers.rb,
lib/elastic_apm/normalizers/action_view.rb,
lib/elastic_apm/normalizers/action_mailer.rb,
lib/elastic_apm/normalizers/active_record.rb,
lib/elastic_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.



22
23
24
25
26
27
28
# File 'lib/elastic_apm/normalizers.rb', line 22

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.



17
18
19
20
# File 'lib/elastic_apm/normalizers.rb', line 17

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