package
0.0.0-20250304192308-25ea0fd7a126
Repository: https://github.com/mongodb/anser.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NewBasicMonitor returns a simple monitor implementation that does not automatically rotate data.
NewLoggingMonitor wraps an existing logging monitor that automatically logs the output the default grip logger on the specified interval.
NewMonitor creates a new mongodb event CommandMonitor.
No description provided by the author
WithCommandAttributeDisabled specifies if the MongoDB command is added as an attribute to Spans or not.
WithCommandAttributeTransformer specifies a function to transform the MongoDB command attribute.
WithTracerProvider specifies a tracer provider to use for creating a tracer.

# Structs

MonitorConfig makes it possible to configure the behavior of the Monitor.
Namespace defines a MongoDB collection and database.

# Interfaces

Event describes a single "event" produced by rotating the Client's cached storage.
Monitor provides a high level command monitoring total.
Option specifies instrumentation configuration options.

# Type aliases

CommandTransformer defines a function that transforms a MongoDB command attribute.