Sha256: 286342ffd8904616195471e1e47f5828158cf88da7c97a8cdf54865d2ce42848

Contents?: true

Size: 512 Bytes

Versions: 5

Compression:

Stored size: 512 Bytes

Contents

# typed: ignore
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

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.54.1 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.54.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.53.0 lib/ddtrace/contrib/rails/railtie.rb
ddtrace-0.52.0 lib/ddtrace/contrib/rails/railtie.rb