Skip to content

Commit fc78970

Browse files
committed
fix: typeerror in mongoose instrumentation
1 parent a1cbeb4 commit fc78970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instrumentations/trace-instrumentation-mongoose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (mongoose, agent) {
1010
Shimmer.wrap(mongoose.Mongoose.prototype.Query.prototype, 'exec', function (original) {
1111
return function (op, callback) {
1212
if (typeof op === 'function') {
13-
op = agent.tracer.bind(op)
13+
op = agent.storage.bind(op)
1414
}
1515
if (typeof callback === 'function') {
1616
callback = agent.storage.bind(callback)

0 commit comments

Comments
 (0)