Sha256: 26eabd5edff4daae6e6f37d5a5e6ee8661c29659341b5eb46daca681b28a9d1f

Contents?: true

Size: 469 Bytes

Versions: 17

Compression:

Stored size: 469 Bytes

Contents

require_relative 'framework'
require_relative 'middlewares'
require_relative '../rack/middlewares'

module Datadog
  # Railtie class initializes
  class Railtie < Rails::Railtie
    # Add the trace middleware to the application stack
    initializer 'datadog.before_initialize' do |app|
      Tracing::Contrib::Rails::Patcher.before_initialize(app)
    end

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ddtrace-1.23.3 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.19.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.18.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.16.2 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.16.1 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.16.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.15.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.14.0 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.13.1 lib/datadog/tracing/contrib/rails/railtie.rb
ddtrace-1.13.0 lib/datadog/tracing/contrib/rails/railtie.rb