Sha256: d2053f64285476a86b5279b8dcdb752aa3780fe0b64b3b71a4d77ed1ef479dd7
Contents?: true
Size: 1.43 KB
Versions: 6
Compression:
Stored size: 1.43 KB
Contents
# frozen_string_literal: true require_relative "plain_apm/version" require_relative "plain_apm/transport" require_relative "plain_apm/config" require_relative "plain_apm/agent" require "object_tracing" require_relative "plain_apm/hooks/deploy" # Rails extensions begin require "rack/body_proxy" require_relative "plain_apm/extensions/context" require_relative "plain_apm/extensions/context/middleware" require_relative "plain_apm/extensions/context/active_job" if defined?(ActiveSupport) require_relative "plain_apm/extensions/context/railtie" if defined?(Rails::Railtie) require_relative "plain_apm/extensions/thread_allocations" require_relative "plain_apm/helpers" rescue LoadError nil end # Rack exceptions require_relative "plain_apm/extensions/exceptions/rack" require_relative "plain_apm/extensions/exceptions/railtie" if defined?(Rails::Railtie) # Rails instrumentation require_relative "plain_apm/hooks/active_support_subscriber" require_relative "plain_apm/hooks/action_mailer" require_relative "plain_apm/hooks/action_pack" require_relative "plain_apm/hooks/action_view" require_relative "plain_apm/hooks/active_job" require_relative "plain_apm/hooks/active_record" require_relative "plain_apm/hooks/manual" require_relative "plain_apm/hooks/error_reporter" module PlainApm if defined?(Rails) class Railtie < Rails::Railtie config.after_initialize { PlainApm::Agent.start } end else Agent.start end end
Version data entries
6 entries across 6 versions & 1 rubygems