Help us shape the future of Go! Take the 2026 Go Developer Survey

sampler

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 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