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