Class: Skylight::Normalizers::Container Private

Inherits:
Object
  • Object
show all
Defined in:
lib/skylight/normalizers.rb

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

Instance Method Summary collapse

Constructor Details

#initialize(normalizers) ⇒ Container

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.

Returns a new instance of Container.



112
113
114
# File 'lib/skylight/normalizers.rb', line 112

def initialize(normalizers)
  @normalizers = normalizers
end

Instance Method Details

#normalize(trace, name, payload) ⇒ 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.



116
117
118
119
# File 'lib/skylight/normalizers.rb', line 116

def normalize(trace, name, payload)
  normalizer = @normalizers[name] || DEFAULT
  normalizer.normalize(trace, name, payload)
end