mongotrace

package module
v0.0.0-...-cec7ee5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 8 Imported by: 0

README

mongo-opencensus

Mongo Go Driver Monitor for Opencensus

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

func WithSampler(sampler trace.Sampler) Option

WithSampler set a sampler for all started spans.

func WithServiceName

func WithServiceName(name string) Option

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL