class Skylight::Core::Probes::ActionDispatch::Routing::RouteSet::Probe

Public Instance Methods

call(env) click to toggle source
# File lib/skylight/core/probes/action_dispatch/routing/route_set.rb, line 11
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
install() click to toggle source
# 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