module OpenTelemetry::Instrumentation::ActiveRecord::Patches::PersistenceClassMethods::ClassMethods
Contains ActiveRecord::Persistence::ClassMethods to be patched
Public Instance Methods
create(attributes = nil, &block)
click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/active_record/patches/persistence_class_methods.rb, line 21 def create(attributes = nil, &block) tracer.in_span("#{self}.create") do super end end
create!(attributes = nil, &block)
click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/active_record/patches/persistence_class_methods.rb, line 27 def create!(attributes = nil, &block) tracer.in_span("#{self}.create!") do super end end
delete(id_or_array)
click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/active_record/patches/persistence_class_methods.rb, line 51 def delete(id_or_array) tracer.in_span("#{self}.delete") do super end end
destroy(id)
click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/active_record/patches/persistence_class_methods.rb, line 45 def destroy(id) tracer.in_span("#{self}.destroy") do super end end
instantiate(attributes, column_types = {}, &block)
click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/active_record/patches/persistence_class_methods.rb, line 33 def instantiate(attributes, column_types = {}, &block) tracer.in_span("#{self}.instantiate") do super end end
update(id = :all, attributes)
click to toggle source
Calls superclass method
# File lib/opentelemetry/instrumentation/active_record/patches/persistence_class_methods.rb, line 39 def update(id = :all, attributes) # rubocop:disable Style/OptionalArguments tracer.in_span("#{self}.update") do super end end
Private Instance Methods
tracer()
click to toggle source
# File lib/opentelemetry/instrumentation/active_record/patches/persistence_class_methods.rb, line 59 def tracer ActiveRecord::Instrumentation.instance.tracer end