Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory returns a new factory for the Probabilistic sampler processor.
Types ¶
type AttributeSource ¶ added in v0.67.0
type AttributeSource string
type Config ¶
type Config struct { // SamplingPercentage is the percentage rate at which traces or logs are going to be sampled. Defaults to zero, i.e.: no sample. // Values greater or equal 100 are treated as "sample all traces/logs". SamplingPercentage float32 `mapstructure:"sampling_percentage"` // HashSeed allows one to configure the hashing seed. This is important in scenarios where multiple layers of collectors // have different sampling rates: if they use the same seed all passing one layer may pass the other even if they have // different sampling rates, configuring different seeds avoids that. HashSeed uint32 `mapstructure:"hash_seed"` // AttributeSource (logs only) defines where to look for the attribute in from_attribute. The allowed values are // `traceID` or `record`. Default is `traceID`. AttributeSource `mapstructure:"attribute_source"` // FromAttribute (logs only) The optional name of a log record attribute used for sampling purposes, such as a // unique log record ID. The value of the attribute is only used if the trace ID is absent or if `attribute_source` is set to `record`. FromAttribute string `mapstructure:"from_attribute"` // SamplingPriority (logs only) enables using a log record attribute as the sampling priority of the log record. SamplingPriority string `mapstructure:"sampling_priority"` }
Config has the configuration guiding the sampler processor.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.