Sha256: 06d1534a3dc8bd4e2590a3f937329b068052bb90d056dd2c3c861562490cd1e3

Contents?: true

Size: 714 Bytes

Versions: 21

Compression:

Stored size: 714 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.
module PlainApm
  module Extensions
    module Context
      class Railtie < Rails::Railtie
        initializer "plain_apm.insert_context_middleware" do |app|
          if defined?(ActionDispatch::RequestId)
            app.config.middleware.insert_after ActionDispatch::RequestId, PlainApm::Extensions::Context::Middleware
          else
            app.config.middleware.insert_after Rack::MethodOverride, PlainApm::Extensions::Context::Middleware
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
plain_apm-0.7.1 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.7.0 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.6.7 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.6.6 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.6.5 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.6.4 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.6.3 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.6.2 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.6.1 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.5.7 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.5.6 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.5.5 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.5.4 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.5.3 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.5.2 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.5.1 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.5.0 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.4.0 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.3.0 lib/plain_apm/extensions/context/railtie.rb
plain_apm-0.2.9 lib/plain_apm/extensions/context/railtie.rb