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
#configuration ⇒ Object
23 24 25 |
# File 'lib/ddtrace/contrib/active_record/event.rb', line 23 def configuration Datadog.configuration[:active_record] end |
#span_options ⇒ Object
15 16 17 |
# File 'lib/ddtrace/contrib/active_record/event.rb', line 15 def { service: configuration[:service_name] } end |
#tracer ⇒ Object
19 20 21 |
# File 'lib/ddtrace/contrib/active_record/event.rb', line 19 def tracer -> { configuration[:tracer] } end |