Sha256: b28f86bcf9d76b0e521aa35f4d2282d18dfdcd371712e8ff509bbfce8b817d8d

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

# typed: ignore

require 'datadog/tracing/contrib/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

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-1.2.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.1.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.0.0 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb
ddtrace-1.0.0.beta2 lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb