Sha256: d0e8dd375a0fe5d83a83d6922ff6002d3658a2c606d8072d4b9282ce26340108

Contents?: true

Size: 430 Bytes

Versions: 16

Compression:

Stored size: 430 Bytes

Contents

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

16 entries across 16 versions & 1 rubygems

Version Path
ddtrace-1.18.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.16.2 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.16.1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.16.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.15.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.14.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.13.1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.13.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.12.1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.12.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.11.1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.11.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.11.0.beta1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.10.1 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb