| 1 | // Copyright The OpenTelemetry Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | // Package otelmongo instruments go.mongodb.org/mongo-driver/v2/mongo. |
| 5 | // |
| 6 | // `NewMonitor` will return an event.CommandMonitor which is used to trace |
| 7 | // requests and collect its metrics. |
| 8 | // |
| 9 | // This code was originally based on the following: |
| 10 | // - https://github.com/open-telemetry/opentelemetry-go-contrib/tree/323e373a6c15ae310bdd0617e3ed52d8cb8e4e6f/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo |
| 11 | package otelmongo // import "go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo" |