Documentation ¶
Overview ¶
Package mgo provides functions and types which allow tracing of the MGO MongoDB client (https://github.com/globalsign/mgo)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection = v2.Collection
Collection provides a mgo.Collection along with data used for APM Tracing.
type DialOption ¶
type DialOption = v2.DialOption
DialOption represents an option that can be passed to Dial
func WithAnalytics ¶ added in v1.11.0
func WithAnalytics(on bool) DialOption
WithAnalytics enables Trace Analytics for all started spans.
func WithAnalyticsRate ¶ added in v1.11.0
func WithAnalyticsRate(rate float64) DialOption
WithAnalyticsRate sets the sampling rate for Trace Analytics events correlated to started spans.
func WithServiceName ¶
func WithServiceName(name string) DialOption
WithServiceName sets the service name for a given MongoDB context.
Click to show internal directories.
Click to hide internal directories.