Class: Skylight::Core::Normalizers::Normalizer Private

Inherits:
Object
  • Object
show all
Defined in:
lib/skylight/core/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 Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Normalizer

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 Normalizer.



59
60
61
62
# File 'lib/skylight/core/normalizers.rb', line 59

def initialize(config)
  @config = config
  setup if respond_to?(:setup)
end

Instance Attribute Details

#configObject (readonly)

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.



57
58
59
# File 'lib/skylight/core/normalizers.rb', line 57

def config
  @config
end

Class Method Details

.register(name, opts = {}) ⇒ 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.



53
54
55
# File 'lib/skylight/core/normalizers.rb', line 53

def self.register(name, opts={})
  Normalizers.register(name, self, opts)
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.



64
65
66
# File 'lib/skylight/core/normalizers.rb', line 64

def normalize(trace, name, payload)
  :skip
end

#normalize_after(trace, span, 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.



68
69
# File 'lib/skylight/core/normalizers.rb', line 68

def normalize_after(trace, span, name, payload)
end