doctrine / DoctrineMongoDBBundle

Integrates Doctrine MongoDB ODM with Symfony
http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
MIT License
377 stars 229 forks source link

Fix missing driver instrumentation #775

Closed alcaeus closed 1 year ago

alcaeus commented 1 year ago

The ODM sends its own version data to servers to augment the driver version info. When using the bundle, the client isn't created by the DocumentManager, so this driver data is missing. This PR fixes this issue by adding the correct version info for Doctrine ODM.

Note that the added dependency is already a dependency of the ODM itself and does not add to the dependency chain. It is merely added here to avoid relying on a transitive dependency.

alcaeus commented 1 year ago

Note that a number of check failures are unrelated to the current. I'd like to revisit this in the 4.6.x branch.