module SignalFx::Tracing::Instrumenter::MongoDB
Public Class Methods
instrument(opts = {})
click to toggle source
# File lib/signalfx/tracing/instrumentation/mongodb.rb, line 10 def instrument(opts = {}) begin require 'mongo' rescue LoadError return end begin require 'mongodb/instrumentation' rescue LoadError => e puts e.message return end ::MongoDB::Instrumentation.instrument end