filters

package
Version: v0.0.0-...-24d4c76 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

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 *model.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 *model.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