sampler

package
v1.14.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRandomRatioBased

func NewRandomRatioBased(fraction float64, rnd randGenerator) sdktrace.Sampler

NewRandomRatioBased creates a sampler based on random number. fraction parameter should be between 0 and 1 where: fraction >= 1 it will always sample fraction <= 0 it will never sample

Types

type RandomRatioBased

type RandomRatioBased struct {
	sdktrace.Sampler
	// contains filtered or unexported fields
}

func (*RandomRatioBased) Description

func (s *RandomRatioBased) Description() string

func (*RandomRatioBased) ShouldSample

Jump to

Keyboard shortcuts

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