We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 470722f commit 5f8d92dCopy full SHA for 5f8d92d
packages/datadog-plugin-mongodb-core/src/index.js
@@ -51,7 +51,7 @@ class MongodbCorePlugin extends DatabasePlugin {
51
// if the command already has a comment, append the dbm trace comment
52
if (typeof dbmTracedCommand.comment === 'string') {
53
dbmTracedCommand.comment += `,${dbmTraceComment}`
54
- } else if (Array.isArray(command.comment)) {
+ } else if (Array.isArray(dbmTracedCommand.comment)) {
55
dbmTracedCommand.comment.push(dbmTraceComment)
56
} // do nothing if the comment is not a string or an array
57
} else {
0 commit comments