Sha256: ae93ac40ed0fbb8bc991cc9f74790241bd00ebe8930df702acdf53bfe1e9b158

Contents?: true

Size: 684 Bytes

Versions: 20

Compression:

Stored size: 684 Bytes

Contents

module Skylight
  module Probes
    module ActionDispatch
      module RequestId
        module Instrumentation
          def call(env)
            @skylight_request_id = env["skylight.request_id"]
            super
          end

          private

          def internal_request_id
            @skylight_request_id || super
          end
        end

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

    register(
      :action_dispatch,
      "ActionDispatch::RequestId",
      "action_dispatch/middleware/request_id",
      ActionDispatch::RequestId::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/request_id.rb
skylight-6.0.4 lib/skylight/probes/action_dispatch/request_id.rb
skylight-6.0.3 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.3.5 lib/skylight/probes/action_dispatch/request_id.rb
skylight-6.0.2 lib/skylight/probes/action_dispatch/request_id.rb
skylight-6.0.1 lib/skylight/probes/action_dispatch/request_id.rb
skylight-6.0.0 lib/skylight/probes/action_dispatch/request_id.rb
skylight-6.0.0.beta2 lib/skylight/probes/action_dispatch/request_id.rb
skylight-6.0.0.beta lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.3.4 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.3.3 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.3.2 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.3.1 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.3.0 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.2.0 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.2.0.beta2 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.2.0.beta lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.1.1 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.1.0.beta3 lib/skylight/probes/action_dispatch/request_id.rb
skylight-5.1.0.beta2 lib/skylight/probes/action_dispatch/request_id.rb