Documentation ¶
Overview ¶
This package implements integration between the official go mongodb driver (https://github.com/mongodb/mongo-go-driver) and OpenTelemetry.
import "github.com/americanas-go/ignite/go.mongodb.org/mongo-driver.v1/plugins/contrib/opentelemetry/otelmongo.v1
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Enabled bool
}
Options represents the opentelemetry plugin for mongo options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
type OtelMongo ¶
type OtelMongo struct {
// contains filtered or unexported fields
}
OtelMongo represents a opentelemetry plugin for mongo.
func NewOtelMongo ¶
func NewOtelMongo() *OtelMongo
NewOtelMongo returns a new opentelemetry plugin with default options.
func NewOtelMongoWithConfigPath ¶
NewOtelMongoWithConfigPath returns a new opentelemetry plugin with options from config path.
func NewOtelMongoWithOptions ¶
NewOtelMongoWithOptions returns a new opentelemetry plugin with options.