Sha256: 3c3ddbb86d22beece4552d2b6335b12a4f99c0ab7cb9161ee28314b2cd46f03d
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true require "active_record" require "opentracing" require "active_record/open_tracing/version" require "active_record/open_tracing/processor" module ActiveRecord module OpenTracing 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-instrumentation-0.3.0.jlauer2 | lib/active_record/open_tracing.rb |