Sha256: f649337da7e5bf2cd73b560f809314ccc4a861a3632a84f1a5a0798d0994261f

Contents?: true

Size: 447 Bytes

Versions: 12

Compression:

Stored size: 447 Bytes

Contents

# typed: ignore

require_relative '../auto_instrument'

# Railtie to include AutoInstrumentation in rails loading
class DatadogAutoInstrumentRailtie < Rails::Railtie
  # we want to load before config initializers so that any user supplied config
  # in config/initializers/datadog.rb will take precedence
  initializer 'datadog.start_tracer', before: :load_config_initializers do
    Datadog::Tracing::Contrib::AutoInstrument.patch_all!
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.8.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.7.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.6.1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.6.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.5.2 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.5.1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.5.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.4.2 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.4.1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.4.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.3.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb