Sha256: 2e125349376c6feb270c038ffabf49561846c003be4eb3520fe9a1706742e01d
Contents?: true
Size: 963 Bytes
Versions: 9
Compression:
Stored size: 963 Bytes
Contents
# frozen_string_literal: true ## # This code is inspired by request_store gem by Steve Klabnik: # # https://github.com/steveklabnik/request_store/ # # See LICENSE.txt in the current directory for the license. begin require "rails/railtie" rescue LoadError nil end module PlainApm module Extensions module Context if defined?(Rails::Railtie) class Railtie < Rails::Railtie initializer "plain_apm.initialize_context" do |app| ActiveSupport.on_load(:active_job) do |klass| klass.prepend(PlainApm::Extensions::Context::ActiveJob) end if defined?(ActionDispatch::RequestId) app.config.middleware.insert_after ActionDispatch::RequestId, PlainApm::Extensions::Context::Rack else app.config.middleware.insert_after Rack::MethodOverride, PlainApm::Extensions::Context::Rack end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems