Skip to content

Commit

Permalink
Add pipeline to Mongodb query (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdpjulien authored Oct 18, 2024
1 parent 5e4900d commit 56a3b24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/datadog-plugin-mongodb-core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function getQuery (cmd) {
if (!cmd || typeof cmd !== 'object' || Array.isArray(cmd)) return
if (cmd.query) return sanitizeBigInt(limitDepth(cmd.query))
if (cmd.filter) return sanitizeBigInt(limitDepth(cmd.filter))
if (cmd.pipeline) return sanitizeBigInt(limitDepth(cmd.pipeline))
}

function getResource (plugin, ns, query, operationName) {
Expand Down

0 comments on commit 56a3b24

Please sign in to comment.