Documentation ¶
Overview ¶
Package throughputmeasurementprocessor provides a processor that measure the amount of otlp structures flowing through it
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new ProcessorFactory with default configuration
func RegisterMetricViews ¶ added in v1.12.0
func RegisterMetricViews() error
RegisterMetricViews unregisters old metric views if they exist and registers new ones
Types ¶
type Config ¶
type Config struct { // Enable controls whether measurements are taken or not. Enabled bool `mapstructure:"enabled"` // SamplingRatio is the ratio of payloads that are measured. Values between 0.0 and 1.0 are valid. SamplingRatio float64 `mapstructure:"sampling_ratio"` }
Config is the configuration for the processor
Click to show internal directories.
Click to hide internal directories.