probabilistic_sampler

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package probabilistic_sampler provides an otelcol.processor.probabilistic_sampler component.

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	FailClosed:        true,
	AttributeSource:   "traceID",
	SamplingPrecision: 4,
}

DefaultArguments holds default settings for Arguments.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	SamplingPercentage float32 `alloy:"sampling_percentage,attr,optional"`
	HashSeed           uint32  `alloy:"hash_seed,attr,optional"`
	Mode               string  `alloy:"mode,attr,optional"`
	FailClosed         bool    `alloy:"fail_closed,attr,optional"`
	SamplingPrecision  int     `alloy:"sampling_precision,attr,optional"`
	AttributeSource    string  `alloy:"attribute_source,attr,optional"`
	FromAttribute      string  `alloy:"from_attribute,attr,optional"`
	SamplingPriority   string  `alloy:"sampling_priority,attr,optional"`

	// Output configures where to send processed data. Required.
	Output *otelcol.ConsumerArguments `alloy:"output,block"`

	// DebugMetrics configures component internal metrics. Optional.
	DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"`
}

Arguments configures the otelcol.processor.probabilistic_sampler component.

func (Arguments) Convert

func (args Arguments) Convert() (otelcomponent.Config, error)

Convert implements processor.Arguments.

func (Arguments) DebugMetricsConfig added in v1.2.0

func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments

DebugMetricsConfig implements processor.Arguments.

func (Arguments) Exporters

Exporters implements processor.Arguments.

func (Arguments) Extensions

func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension

Extensions implements processor.Arguments.

func (Arguments) NextConsumers

func (args Arguments) NextConsumers() *otelcol.ConsumerArguments

NextConsumers implements processor.Arguments.

func (*Arguments) SetToDefault

func (args *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements syntax.Validator.

Jump to

Keyboard shortcuts

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