An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/newrelic/go-agent/v3/integrations/nrmongo

Package nrmongo instruments https://github.com/mongodb/mongo-go-driver Use this package to instrument your MongoDB calls without having to manually create DatastoreSegments. To do so, first set the monitor in the connect options using `SetMonitor` (https://godoc.org/go.mongodb.org/mongo-driver/mongo/options#ClientOptions.SetMonitor): Note that it is important that this `nrmongo` monitor is the last monitor set, otherwise it will be overwritten. If needing to use more than one `event.CommandMonitor`, pass the original monitor to the `nrmongo.NewCommandMonitor` function: Then add the current transaction to the context used in any MongoDB call:
8 versions
Latest release: over 1 year ago
44 dependent packages

View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/newrelic/go-agent/v3/integrations/nrmongo

Dependent Repos 0