cardinalitydetector

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardinalityDetector

type CardinalityDetector interface {
	CheckAttrs([]attribute.KeyValue) bool
	Shutdown()
}

func New

func New(name string, config *Config) CardinalityDetector

type CardinalityDetectorPool

type CardinalityDetectorPool interface {
	Lookup(string) (CardinalityDetector, bool)
	Shutdown()
}

func NewPool

func NewPool(instrumentationName string, config *Config) CardinalityDetectorPool

type Config

type Config struct {
	Enable             bool
	MaxCardinality     int
	MaxInstruments     int
	DiagnosticInterval time.Duration
	Logger             func() *zap.Logger
}

func NewConfig

func NewConfig(opts ...Option) *Config

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDiagnosticInterval

func WithDiagnosticInterval(interval time.Duration) Option

func WithEnable

func WithEnable(b bool) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithMaxCardinality

func WithMaxCardinality(cardinality int) Option

func WithMaxInstruments

func WithMaxInstruments(instruments int) Option

Jump to

Keyboard shortcuts

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