Top 0.7% dependent packages on proxy.golang.org
Top 1.3% dependent repos on proxy.golang.org
Top 1.7% forks on proxy.golang.org
Top 1.0% docker downloads on proxy.golang.org
proxy.golang.org : 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:
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/newrelic/go-agent/v3/integrations/nrmongo
License: Apache-2.0
Latest release: 4 months ago
First release: almost 6 years ago
Namespace: github.com/newrelic/go-agent/v3/integrations
Dependent packages: 44
Dependent repositories: 18
Stars: 692 on GitHub
Forks: 280 on GitHub
Docker dependents: 9
Docker downloads: 8,886
See more repository details: repos.ecosyste.ms
Last synced: about 11 hours ago