dynamicsamplingprocessor

package module
v0.0.0-...-62059d4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

Dynamic Sampling Processor

Status
Stability development: logs
Distributions []
Issues Open issues Closed issues
Code Owners @cartermp

This processor can apply sampling decisions on trace data and is based on dysampler-go.

Documentation

Index

Constants

View Source
const (
	EMADynamicSampler    string = "EMADynamicSampler"
	EMAThroughputSampler string = "EMAThroughputSampler"
)

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() processor.Factory

Types

type Config

type Config struct {
	Sampler   string   `mapstructure:"sampler"`
	KeyFields []string `mapstructure:"key_fields"`

	// EMADynamicSampler specific configuration
	GoalSampleRate int `mapstructure:"goal_sample_rate"`

	// EMAThroughputSampler specific configuration
	GoalThroughputPerSecond int `mapstructure:"goal_throughput_per_second"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

type SamplerType

type SamplerType string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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