opentelemetry-go-contrib
opentelemetry-go-contrib copied to clipboard
Add `go.mongodb.org/mongo-driver/v2` specific instrumentation
v2specific instrumentation needs to be added in addition. Support forv1needs to continue.
Originally posted by @MrAlias in https://github.com/open-telemetry/opentelemetry-go-contrib/issues/6418#issuecomment-2532600175
Currently the Mongo DB instrumentation has no owner. The new owner needs to assume this task or we should close this along with https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5551 if we do not land on ownership.
cc @prestonvasquez
I did a copy/paste implementation using the new mongo-driver/v2 library: https://github.com/open-telemetry/opentelemetry-go-contrib/pull/6539
I chose the folder structure to match the golang package name.
@MrAlias I would be happy to help review #6539.
I would be happy to help review
Feel free to do so, as that's definitely a good way forward being code owner :)
I can see that #6539 is merged and Release notes for v1.36.0 mentions that "Add instrumentation support for go.mongodb.org/mongo-driver/v2" but I dont see a release version of this package.
go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo is listed under excluded-modules in versions.yaml
cc @prestonvasquez @dmathieu
If you look at the PR merging the new instrumentation, we decided not to ship it for now. That doesn't prevent using it. You can use commit hashes as a go module version.
This was shipped in https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo