Class: StackifyRubyAPM::Spies::MongoSpy Private

Inherits:
Object
  • Object
show all
Defined in:
lib/stackify_apm/spies/mongo.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: Subscriber

Instance Method Summary collapse

Instance Method Details

#installObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
15
16
17
# File 'lib/stackify_apm/spies/mongo.rb', line 12

def install
  ::Mongo::Monitoring::Global.subscribe(
    ::Mongo::Monitoring::COMMAND,
    Subscriber.new
  )
end