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
Please add support for the default patching/tracing of both the .count() and the .countDocument() queries as they (unfortunately) can be very expensive if there are MongoDB indexes that are missing and are worth tracing by default.
The text was updated successfully, but these errors were encountered:
patrickshuff
changed the title
Add default tracing support for .count() and .countDocument() in the datadog-plugin-mongodb-core
Add tracing support for .count() and .countDocument() in the datadog-plugin-mongodb-core
Jul 1, 2020
patrickshuff
changed the title
Add tracing support for .count() and .countDocument() in the datadog-plugin-mongodb-core
Add tracing support for .count() and .countDocuments() in the datadog-plugin-mongodb-core
Jul 1, 2020
patrickshuff
changed the title
Add tracing support for .count() and .countDocuments() in the datadog-plugin-mongodb-core
Add tracing support for .count() and .countDocuments() in datadog-plugin-mongodb-core
Jul 1, 2020
We're looking into instrumenting the driver at the wire protocol directly which should intercept every command sent to Mongo, so this will be supported as well at that point.
@rochdev -- we are using mongoose-paginate-v2 which was doing some .count() calls and were causing us some pain that weren't showing up in Datadog APM.
Currently there are only a limited number of mongodb-core calls that are being dynamically patched:
https://github.com/DataDog/dd-trace-js/blob/master/packages/datadog-plugin-mongodb-core/src/index.js#L139
Please add support for the default patching/tracing of both the
.count()
and the.countDocument()
queries as they (unfortunately) can be very expensive if there are MongoDB indexes that are missing and are worth tracing by default.The text was updated successfully, but these errors were encountered: