cardinalitydetector

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector added in v2.3.6

type Detector interface {
	CheckAttrs(context.Context, []attribute.KeyValue) bool
	Shutdown()
}

func New

func New(ctx context.Context, name string, opts Options) Detector

type Option

type Option func(*Options)

func WithCheckInterval added in v2.3.6

func WithCheckInterval(interval time.Duration) Option

func WithEnable

func WithEnable(b bool) Option

func WithLogger

func WithLogger(logger log.Logger) Option

func WithMaxCardinality

func WithMaxCardinality(cardinality int) Option

func WithMaxInstruments

func WithMaxInstruments(instruments int) Option

type Options added in v2.3.6

type Options struct {
	Enable         bool
	MaxCardinality int
	MaxInstruments int
	CheckInterval  time.Duration
	Logger         log.Logger
}

func DefaultOptions added in v2.3.6

func DefaultOptions() Options

func NewOptions added in v2.3.6

func NewOptions(options ...Option) Options

type Pool added in v2.3.6

type Pool interface {
	Lookup(context.Context, string) (Detector, bool)
	Shutdown()
}

func NewPool

func NewPool(ctx context.Context, instrumentationName string, opts Options) Pool

Jump to

Keyboard shortcuts

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