Sha256: 61ee6d5ee88d91cb5bc97a53522d941bb3f14234d5c14a28238af9cbb82cf148

Contents?: true

Size: 496 Bytes

Versions: 61

Compression:

Stored size: 496 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
    # Add the trace middleware to the application stack
    initializer 'datadog.before_intialize' do |app|
      Datadog::Contrib::Rails::Patcher.before_intialize(app)
    end

    config.after_initialize do
      Datadog::Contrib::Rails::Patcher.after_intialize(self)
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.51.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.50.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.49.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.48.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.47.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.46.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.45.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.44.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.43.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.42.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.41.0 lib/ddtrace/contrib/rails/railtie.rb
ls-trace-0.2.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.40.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.39.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.38.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.37.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.36.0 lib/ddtrace/contrib/rails/railtie.rb
ls-trace-0.1.2 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.35.2 lib/ddtrace/contrib/rails/railtie.rb