Sha256: 7749c34388dc076bf9f2ebb598bcec043f867e521ee636be41e2d9c02e7f3890

Contents?: true

Size: 509 Bytes

Versions: 9

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

begin
  require "rails/railtie"
rescue LoadError
  nil
end

module PlainApm
  module Extensions
    module ThreadAllocations
      if defined?(Rails::Railtie)
        class Railtie < Rails::Railtie
          initializer "plain_apm.thread_allocations_in_active_support_events" do
            ActiveSupport::Notifications::Event.prepend(
              PlainApm::Extensions::ThreadAllocations::ActiveSupportEvent
            )
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
plain_apm-0.9.2 lib/plain_apm/extensions/thread_allocations/railtie.rb
plain_apm-0.9.1 lib/plain_apm/extensions/thread_allocations/railtie.rb
plain_apm-0.9.0 lib/plain_apm/extensions/thread_allocations/railtie.rb
plain_apm-0.8.8 lib/plain_apm/extensions/thread_allocations/railtie.rb
plain_apm-0.8.7 lib/plain_apm/extensions/thread_allocations/railtie.rb
plain_apm-0.8.6 lib/plain_apm/extensions/thread_allocations/railtie.rb
plain_apm-0.8.5 lib/plain_apm/extensions/thread_allocations/railtie.rb
plain_apm-0.8.4 lib/plain_apm/extensions/thread_allocations/railtie.rb
plain_apm-0.8.3 lib/plain_apm/extensions/thread_allocations/railtie.rb