Skip to content

Commit

Permalink
fix: typeerror in mongoose instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dszakallas committed May 5, 2017
1 parent a1cbeb4 commit fc78970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instrumentations/trace-instrumentation-mongoose.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function (mongoose, agent) {
Shimmer.wrap(mongoose.Mongoose.prototype.Query.prototype, 'exec', function (original) {
return function (op, callback) {
if (typeof op === 'function') {
op = agent.tracer.bind(op)
op = agent.storage.bind(op)
}
if (typeof callback === 'function') {
callback = agent.storage.bind(callback)
Expand Down

1 comment on commit fc78970

@colinhemphill
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the speedy fix!

Please sign in to comment.