# frozen_string_literal: true module PlainApm module Extensions module ActiveSupport class Railtie < Rails::Railtie initializer(:plain_apm_thread_allocations, after: :plain_apm_agent_start) do next if !PlainApm.agent.enabled? require "object_tracing" ::ActiveSupport::Notifications::Event.prepend( PlainApm::Extensions::ActiveSupport::Event ) end end end end end