You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we were able to instrument each individual DB command, we found these 7 lines of code to be extraordinary helpful in solving a lot of complex issues. I just open Atlas -> Monitoring -> Query Insights -> click on the slow performing query -> "comment" value.
AMAZING!
However, there is no any documentation about the `operation-start" event. I assume it's on purpose.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We needed to add
comment
to each mongodb command. This helps debugging all performance bottlenecks.async_hooks
to set a context string (request ID) when a HTTP request comes.options.comment = stringContext;
Here is the code:
Since we were able to instrument each individual DB command, we found these 7 lines of code to be extraordinary helpful in solving a lot of complex issues. I just open Atlas -> Monitoring -> Query Insights -> click on the slow performing query -> "comment" value.
AMAZING!
However, there is no any documentation about the `operation-start" event. I assume it's on purpose.
I suggest making this part of the Mongoose API.
Beta Was this translation helpful? Give feedback.
All reactions