samplers

package
v2.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 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

Source Files

  • composite_sampler.go
  • count_aware_sampler.go
  • duration_aware_sampler.go
  • error_aware_sampler.go
  • sampler.go
  • time_aware_sampler.go

Jump to

Keyboard shortcuts

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