Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMonitor ¶
func NewMonitor(opts ...Option) *event.CommandMonitor
NewMonitor creates a new mongodb event CommandMonitor.
Types ¶
type Option ¶
type Option func(*config)
Option represents an option that can be passed to Dial.
func WithSampler ¶
WithSampler set a sampler for all started spans.
func WithServiceName ¶
WithServiceName sets the given service name for the dialled connection. When the service name is not explicitly set it will be inferred based on the request to AWS.
Click to show internal directories.
Click to hide internal directories.