Add support for DBM comment injection with MongoDB by Yoone · Pull Request #9589 · DataDog/dd-trace-java

@Yoone changed the title Added support for DBM comment injection with MongoDB Add support for DBM comment injection with MongoDB

Sep 22, 2025

AlexeyKuznetsov-DD

nenadnoveljic

nenadnoveljic

na-ji

@na-ji

@na-ji

…ries

Write queries on the MongoDB driver >= 4.0 and <= 4.7 weren't correctly
instrumented. I didn't notice it before because the tests weren't
exhaustive, and my test app was using driver v5.6.

@na-ji

@na-ji

@na-ji

@na-ji

@na-ji

@na-ji

In the end, the instrumentation only works on driver > 3.6, so we
decided to make a standalone package for that. This version being 9
years old seems to be enough for DBM support

@na-ji

… to run on driver > 4.0 only

@na-ji

We now have two instrumentations: one for 3.6 to 3.7, and another one
for 3.8 to 5.6

@na-ji

PerfectSlayer

@na-ji na-ji deleted the yoann.bentz/mongodb-dbm-support branch

December 19, 2025 09:02

@na-ji na-ji mentioned this pull request

Dec 19, 2025