Module: ActiveRecord::OpenTracing
- Defined in:
- lib/active_record/opentracing.rb,
lib/active_record/opentracing/version.rb,
lib/active_record/opentracing/processor.rb
Defined Under Namespace
Classes: Processor
Constant Summary collapse
- VERSION =
'0.3.0'
Class Method Summary collapse
Class Method Details
.instrument(tracer: ::OpenTracing.global_tracer) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/active_record/opentracing.rb', line 11 def self.instrument(tracer: ::OpenTracing.global_tracer) processor = Processor.new(tracer) ActiveSupport::Notifications.subscribe('sql.active_record') do |*args| processor.call(*args) end self end |