Module: Datadog::Contrib::ActiveRecord::Event::ClassMethods

Defined in:
lib/ddtrace/contrib/active_record/event.rb

Overview

Class methods for ActiveRecord events.

Instance Method Summary collapse

Instance Method Details

#configurationObject



23
24
25
# File 'lib/ddtrace/contrib/active_record/event.rb', line 23

def configuration
  Datadog.configuration[:active_record]
end

#span_optionsObject



15
16
17
# File 'lib/ddtrace/contrib/active_record/event.rb', line 15

def span_options
  { service: configuration[:service_name] }
end

#tracerObject



19
20
21
# File 'lib/ddtrace/contrib/active_record/event.rb', line 19

def tracer
  -> { configuration[:tracer] }
end