Module: Peek::MongoProtocolInstrumented
- Included in:
- Mongo::Protocol::Delete, Mongo::Protocol::GetMore, Mongo::Protocol::Insert, Mongo::Protocol::Query, Mongo::Protocol::Update
- Defined in:
- lib/peek/views/mongo.rb
Overview
Query counts are logged to the Socket class by monitoring payload generation
Instance Method Summary collapse
Instance Method Details
#payload ⇒ Object
26 27 28 29 30 |
# File 'lib/peek/views/mongo.rb', line 26 def payload super ensure ::Mongo::Protocol::Message.query_count.update { |value| value + 1 } end |