You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/07/07 11:01:10 UTC

[GitHub] [skywalking-nodejs] tom-pytel commented on pull request #44: Node Mongoose Plugin

tom-pytel commented on pull request #44:
URL: https://github.com/apache/skywalking-nodejs/pull/44#issuecomment-875508764


   > Hi, I found a problem, when I add skywalking agent in my server, the mongoose api is broken. The `find` api is ok but it return a `Promise` but not a mongoose model. when I remove the agent everything is fine.
   > I see that this case is not included in the test case, maybe it could be added to it.
   > 
   > ```js
   > const result = await this.model.find({}).exec();
   > //  ERROR 57176 nodejs.TypeError: model.find(...).exec is not a function 
   > ```
   
   Ok well right off the bat I think I see the problem, the returned promise is a wrapped promise and `exec()` is not instrumented on that. Fixable, will do.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org