samplers

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sampler

type Sampler interface {
	IsSampled(interface{}) bool
}

Sampler interface enables sampling of reported data

func NewCompositeSampler

func NewCompositeSampler(samplers []Sampler, operator string) Sampler

func NewCountAwareSampler

func NewCountAwareSampler(params ...int64) Sampler

func NewDurationAwareSampler

func NewDurationAwareSampler(duration int64, longerThanArr ...bool) Sampler

func NewErrorAwareSampler

func NewErrorAwareSampler() Sampler

func NewTimeAwareSampler

func NewTimeAwareSampler(params ...int64) Sampler

Jump to

Keyboard shortcuts

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