Sha256: a773b2adb61816847bd9675a613a49edfa0e0495cc965cdb83ce2d6a3b22378c

Contents?: true

Size: 688 Bytes

Versions: 6

Compression:

Stored size: 688 Bytes

Contents

require 'ddtrace/contrib/rails/framework'
require 'ddtrace/contrib/rails/middlewares'
require 'ddtrace/contrib/rack/middlewares'

module Datadog
  # Railtie class initializes
  class Railtie < Rails::Railtie
    config.app_middleware.insert_before(0, Datadog::Contrib::Rack::TraceMiddleware)
    config.app_middleware.use(Datadog::Contrib::Rails::ExceptionMiddleware)

    config.after_initialize do
      Datadog::Contrib::Rails::Framework.setup
      Datadog::Contrib::Rails::ActionController.instrument
      Datadog::Contrib::Rails::ActionView.instrument
      Datadog::Contrib::Rails::ActiveRecord.instrument
      Datadog::Contrib::Rails::ActiveSupport.instrument
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ddtrace-0.12.0.beta2 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.12.0.beta1 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.11.2 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.11.1 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.11.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.11.0.beta2 lib/ddtrace/contrib/rails/railtie.rb