Skip to content

Commit

Permalink
instrumentation: mongodb touches timer in cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Forrest L Norvell committed Mar 14, 2014
1 parent ee210b6 commit 139de31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/instrumentation/mongodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ function wrapNextObject(tracer) {
collection);
}

/* each time the cursor is called, update the prospective end time
* for the MongoDB cursor
*/
segment.touch();

return returned;
});
}
Expand Down

0 comments on commit 139de31

Please sign in to comment.