Class: Skylight::Core::Normalizers::ActionDispatch::ProcessMiddleware Private

Inherits:
Normalizer
  • Object
show all
Defined in:
lib/skylight/core/normalizers/action_dispatch/process_middleware.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.

Constant Summary collapse

CAT =

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

"rack.middleware"
ANONYMOUS_MIDDLEWARE =

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

"Anonymous Middleware"
ANONYMOUS =

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

/\A#<(Class|Module|Proc):/

Instance Attribute Summary

Attributes inherited from Normalizer

#config

Instance Method Summary collapse

Methods inherited from Normalizer

#initialize, #normalize_after, register

Constructor Details

This class inherits a constructor from Skylight::Core::Normalizers::Normalizer

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.


13
14
15
16
17
18
# File 'lib/skylight/core/normalizers/action_dispatch/process_middleware.rb', line 13

def normalize(trace, _name, payload)
  name = payload[:middleware].to_s
  name = ANONYMOUS_MIDDLEWARE if name[ANONYMOUS]
  trace.endpoint = name
  [CAT, name, nil]
end