filters

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 4 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.

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.

Jump to

Keyboard shortcuts

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