Sha256: 9b9e1f4aa3f245502b1e897a9734c9238ddb9d7f086f9f840e3e1d35ba29d41d

Contents?: true

Size: 1.3 KB

Versions: 2

Compression:

Stored size: 1.3 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
  Agent.start
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plain_apm-0.5.1 lib/plain_apm.rb
plain_apm-0.5.0 lib/plain_apm.rb