We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1cbeb4 commit fc78970Copy full SHA for fc78970
lib/instrumentations/trace-instrumentation-mongoose.js
@@ -10,7 +10,7 @@ module.exports = function (mongoose, agent) {
10
Shimmer.wrap(mongoose.Mongoose.prototype.Query.prototype, 'exec', function (original) {
11
return function (op, callback) {
12
if (typeof op === 'function') {
13
- op = agent.tracer.bind(op)
+ op = agent.storage.bind(op)
14
}
15
if (typeof callback === 'function') {
16
callback = agent.storage.bind(callback)
0 commit comments