Module: OpenTelemetry::Instrumentation::ActiveRecord::Patches::Validations
- Defined in:
- lib/opentelemetry/instrumentation/active_record/patches/validations.rb
Overview
Module to prepend to ActiveRecord::Base for instrumentation We patch these methods because they either raise, or call the super implementation in persistence.rb https://github.com/rails/rails/blob/v5.2.4.5/activerecord/lib/active_record/validations.rb#L42-L53 Contains the ActiveRecord::Validations methods to be patched
Instance Method Summary collapse
Instance Method Details
#save(**options) ⇒ Object
17 18 19 20 21 |
# File 'lib/opentelemetry/instrumentation/active_record/patches/validations.rb', line 17 def save(**) tracer.in_span("#{self.class}#save") do super end end |
#save!(**options) ⇒ Object
23 24 25 26 27 |
# File 'lib/opentelemetry/instrumentation/active_record/patches/validations.rb', line 23 def save!(**) tracer.in_span("#{self.class}#save!") do super end end |