module SignalFx::Tracing::Instrumenter::ActiveRecord
Public Class Methods
instrument(opts = {})
click to toggle source
# File lib/signalfx/tracing/instrumentation/active_record.rb, line 10 def instrument(opts = {}) # load ActiveRecord and ActiveSupport if present begin require 'active_support' require 'active_record' rescue LoadError return end begin require 'active_record/opentracing' rescue LoadError => e puts e.message return end ::ActiveRecord::OpenTracing.instrument if !@instrumented @instrumented = true end