Class: StackifyRubyAPM::Spies::MongoSpy::Subscriber 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.

Constant Summary collapse

TYPE =

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

'db.mongodb.query'.freeze

Instance Method Summary collapse

Constructor Details

#initializeSubscriber

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.

Returns a new instance of Subscriber.



23
24
25
# File 'lib/stackify_apm/spies/mongo.rb', line 23

def initialize
  @events = {}
end

Instance Method Details

#failed(event) ⇒ Object

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.



31
32
33
# File 'lib/stackify_apm/spies/mongo.rb', line 31

def failed(event)
  pop_event(event)
end

#started(event) ⇒ Object

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.



27
28
29
# File 'lib/stackify_apm/spies/mongo.rb', line 27

def started(event)
  push_event(event)
end

#succeeded(event) ⇒ Object

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.



35
36
37
# File 'lib/stackify_apm/spies/mongo.rb', line 35

def succeeded(event)
  pop_event(event)
end