Debian Codegraph @

instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/doc.go

raw symbols SCIP
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 // Package otelmongo instruments go.mongodb.org/mongo-driver/mongo.
5 //
6 // This package is compatible with v0.2.0 of
7 // go.mongodb.org/mongo-driver/mongo.
8 //
9 // NewMonitor will return an event.CommandMonitor which is used to trace
10 // requests.
11 //
12 // This code was originally based on the following:
13 // - https://github.com/DataDog/dd-trace-go/tree/02f0449efa3cb382d499fadc873957385dcb2192/contrib/go.mongodb.org/mongo-driver/mongo
14 // - https://github.com/DataDog/dd-trace-go/tree/v1.23.3/ddtrace/ext
15 //
16 // The "OTEL_SEMCONV_STABILITY_OPT_IN" environment variable can be used to opt
17 // into the latest semantic conventions:
18 // - "database": emit the latest semantic conventions
19 // - "": emit v1.21.0 (default) semantic conventions
20 // - "database/dup": emit v1.21.0 (default) and the latest semantic
21 // conventions
22 //
23 // By default, otelmongo only emits v1.21.0.
24 package otelmongo // import "go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo"