Module: ElasticAPM::Normalizers Private
- Defined in:
- lib/elastic_apm/normalizers.rb,
lib/elastic_apm/normalizers/rails/action_view.rb,
lib/elastic_apm/normalizers/grape/endpoint_run.rb,
lib/elastic_apm/normalizers/rails/action_mailer.rb,
lib/elastic_apm/normalizers/rails/active_record.rb,
lib/elastic_apm/normalizers/rails/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, Grape Classes: Collection, Normalizer
Class Method Summary collapse
- .build(config) ⇒ Object private
- .register(name, klass) ⇒ Object private
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.
41 42 43 44 45 46 47 |
# File 'lib/elastic_apm/normalizers.rb', line 41 def self.build(config) normalizers = @registered.transform_values do |klass| 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.
36 37 38 39 |
# File 'lib/elastic_apm/normalizers.rb', line 36 def self.register(name, klass) @registered ||= {} @registered[name] = klass end |