Module: OpenTelemetry::Instrumentation::ActiveRecord::Patches::RelationPersistence

Defined in:
lib/opentelemetry/instrumentation/active_record/patches/relation_persistence.rb

Overview

Module to prepend to ActiveRecord::Relation for instrumentation

Instance Method Summary collapse

Instance Method Details

#delete_allObject



19
20
21
22
23
# File 'lib/opentelemetry/instrumentation/active_record/patches/relation_persistence.rb', line 19

def delete_all(*)
  tracer.in_span("#{model.name}.delete_all") do
    super
  end
end

#update_allObject



13
14
15
16
17
# File 'lib/opentelemetry/instrumentation/active_record/patches/relation_persistence.rb', line 13

def update_all(*)
  tracer.in_span("#{model.name}.update_all") do
    super
  end
end