Module: OpenTelemetry::Instrumentation::ActiveRecord::Patches::TransactionsClassMethods::ClassMethods
- Defined in:
- lib/opentelemetry/instrumentation/active_record/patches/transactions_class_methods.rb
Overview
Contains ActiveRecord::Transactions::ClassMethods to be patched
Instance Method Summary collapse
Instance Method Details
#transaction(**options, &block) ⇒ Object
21 22 23 24 25 |
# File 'lib/opentelemetry/instrumentation/active_record/patches/transactions_class_methods.rb', line 21 def transaction(**, &block) tracer.in_span('ActiveRecord.transaction', attributes: { 'code.namespace' => name }) do super end end |