test/helper.rb
# reset default configuration and replace any dummy tracer
# with the global one
reset default configuration and replace any dummy tracer
with the global one
reset default configuration and replace any dummy tracer with the global one
def reset_config
  Datadog.configure do |c|
    c.use :rails
    c.use :redis if Gem.loaded_specs['redis'] && defined?(::Redis)
  end
  Datadog::Contrib::Rails::Framework.setup
end
def reset_config Datadog . configure do | c | c . use :rails c . use :redis if Gem . loaded_specs [ 'redis' ] && defined? ( :: Redis ) end Datadog :: Contrib :: Rails :: Framework . setup end
reset default configuration and replace any dummy tracer
with the global one
reset default configuration and replace any dummy tracer with the global one