Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// UsageGroups controls sampling for pre-configured usage groups.
UsageGroups map[string]UsageGroupSampling `yaml:"usage_groups" json:"usage_groups"`
}
type ProfileStripper ¶ added in v2.3.0
type ProfileStripper struct{}
ProfileStripper reduces profiles that were sampled out but should be kept in a minimal form.
func NewProfileStripper ¶ added in v2.3.0
func NewProfileStripper() *ProfileStripper
func (*ProfileStripper) StripToTotals ¶ added in v2.3.0
func (*ProfileStripper) StripToTotals(p *profilev1.Profile)
StripToTotals reduces the profile to a single sample holding the sum of all sample values: stacktraces, symbols, and sample labels are dropped, only the series totals are kept.
type UsageGroupSampling ¶
type UsageGroupSampling struct {
Probability float64 `yaml:"probability" json:"probability"`
}
Click to show internal directories.
Click to hide internal directories.