Documentation
¶
Overview ¶
Package filters provides a way to filter out spans based on their properties.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blacklister ¶
type Blacklister struct {
// contains filtered or unexported fields
}
Blacklister holds a list of regular expressions which will match resources on spans that should be dropped.
func NewBlacklister ¶
func NewBlacklister(exprs []string) *Blacklister
NewBlacklister creates a new Blacklister based on the given list of regular expressions.
func (*Blacklister) Allows ¶
Allows returns true if the Blacklister permits this span. False and the denying rule otherwise.
func (*Blacklister) AllowsStat ¶
func (f *Blacklister) AllowsStat(stat *pb.ClientGroupedStats) bool
AllowsStat returns true if the Blacklister permits this stat
func (*Blacklister) AllowsString ¶ added in v0.73.0
func (f *Blacklister) AllowsString(s string) (bool, *regexp.Regexp)
AllowsString returns true if the Blacklister permits this string. False and the denying rule otherwise.
type Replacer ¶
type Replacer struct {
// contains filtered or unexported fields
}
Replacer is a filter which replaces tag values based on its settings. It keeps all spans.
func NewReplacer ¶
func NewReplacer(rules []*config.ReplaceRule) *Replacer
NewReplacer returns a new Replacer which will use the given set of rules.
func (Replacer) ReplaceStatsGroup ¶
func (f Replacer) ReplaceStatsGroup(b *pb.ClientGroupedStats)
ReplaceStatsGroup applies the replacer rules to the given stats bucket group.
func (Replacer) ReplaceV1 ¶ added in v0.73.0
func (f Replacer) ReplaceV1(trace *idx.InternalTraceChunk)
ReplaceV1 replaces all tags matching the Replacer's rules.