Sha256: 770615325494aa12383cf7df6e04a8a47d2a75a3abf7ec22461a60e6e6754742
Contents?: true
Size: 673 Bytes
Versions: 8
Compression:
Stored size: 673 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
8 entries across 8 versions & 1 rubygems