Sha256: 3f7e4e17daf1229681baf0695cd97ce3753a5bc632c7e3c33c0f41621f4c2a0e

Contents?: true

Size: 687 Bytes

Versions: 20

Compression:

Stored size: 687 Bytes

Contents

# frozen_string_literal: true

module Skylight
  module Probes
    module ActionDispatch
      module Routing
        module RouteSet
          module Instrumentation
            def call(env)
              ActiveSupport::Notifications.instrument("route_set.action_dispatch") { super }
            end
          end

          class Probe
            def install
              ::ActionDispatch::Routing::RouteSet.prepend(Instrumentation)
            end
          end
        end
      end
    end

    register(
      :rails_router,
      "ActionDispatch::Routing::RouteSet",
      "action_dispatch/routing/route_set",
      ActionDispatch::Routing::RouteSet::Probe.new
    )
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
skylight-6.1.0.beta lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-6.0.4 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-6.0.3 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.3.5 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-6.0.2 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-6.0.1 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-6.0.0 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-6.0.0.beta2 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-6.0.0.beta lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.3.4 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.3.3 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.3.2 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.3.1 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.3.0 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.2.0 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.2.0.beta2 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.2.0.beta lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.1.1 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.1.0.beta3 lib/skylight/probes/action_dispatch/routing/route_set.rb
skylight-5.1.0.beta2 lib/skylight/probes/action_dispatch/routing/route_set.rb