Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject trace info as comment to MongoDB operation when dbm propagation is enabled. #5230

Merged
merged 18 commits into from
Feb 14, 2025
Merged
Prev Previous commit
Next Next commit
fix timeout
lu-zhengda committed Feb 10, 2025

Verified

This commit was signed with the committer’s verified signature.
lu-zhengda Zhengda Lu
commit d4048c449c38b16740e832c959d21f8b13c79962
14 changes: 10 additions & 4 deletions packages/datadog-plugin-mongodb-core/test/mongodb.spec.js
Original file line number Diff line number Diff line change
@@ -386,7 +386,11 @@
.then(done)
.catch(done)

collection.insertOne({ a: 1 }, {}, () => {})
collection.find({
_id: Buffer.from('1234')
}).toArray()
.then(done)

Check failure on line 392 in packages/datadog-plugin-mongodb-core/test/mongodb.spec.js

GitHub Actions / lint

Expected indentation of 12 spaces but found 10
.catch(done)

Check failure on line 393 in packages/datadog-plugin-mongodb-core/test/mongodb.spec.js

GitHub Actions / lint

Expected indentation of 12 spaces but found 10
})
})

@@ -440,9 +444,11 @@
.then(done)
.catch(done)

collection.find({
_id: Buffer.from('1234')
}).toArray()
collection.find({
_id: Buffer.from('1234')
}).toArray()
.then(done)
.catch(done)
})
})
})