filters

package
v0.40.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

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

func (f *Blacklister) Allows(span *pb.Span) bool

Allows returns true if the Blacklister permits this span.

func (*Blacklister) AllowsStat

func (f *Blacklister) AllowsStat(stat *pb.ClientGroupedStats) bool

AllowsStat returns true if the Blacklister permits this stat

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) Replace

func (f Replacer) Replace(trace pb.Trace)

Replace replaces all tags matching the Replacer's rules.

func (Replacer) ReplaceStatsGroup

func (f Replacer) ReplaceStatsGroup(b *pb.ClientGroupedStats)

ReplaceStatsGroup applies the replacer rules to the given stats bucket group.

Jump to

Keyboard shortcuts

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