Class: Skylight::Core::Probes::ActionDispatch::Routing::RouteSet::Probe Private

Inherits:
Object
  • Object
show all
Defined in:
lib/skylight/core/probes/action_dispatch/routing/route_set.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

Instance Method Details

#installObject

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.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/skylight/core/probes/action_dispatch/routing/route_set.rb', line 7

def install
  ::ActionDispatch::Routing::RouteSet.class_eval do
    alias_method :call_without_sk, :call

    def call(env)
      Skylight::Core::Fanout.endpoint = self.class.name
      Skylight::Core::Fanout.instrument(title: self.class.name, category: "rack.app") do
        call_without_sk(env)
      end
    end
  end
end