tagreplace

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagReplace

type TagReplace struct {
	// contains filtered or unexported fields
}

TagReplace does regex search and replace in span Names and puts resultant in tags. This modifies the objects parsed, so in a concurrent context, you will want to copy the objects sent here first

func New

func New(ruleStrings []string, next sink) (*TagReplace, error)

New returns you a new TagReplace object

func (*TagReplace) AddDatapoints

func (t *TagReplace) AddDatapoints(ctx context.Context, points []*datapoint.Datapoint) error

AddDatapoints is a passthrough

func (*TagReplace) AddEvents

func (t *TagReplace) AddEvents(ctx context.Context, events []*event.Event) error

AddEvents is a passthrough

func (*TagReplace) AddSpans

func (t *TagReplace) AddSpans(ctx context.Context, spans []*trace.Span) error

AddSpans maps all rules to all spans and does the replacements, this can be VERY expensive, and modifies the spans

Jump to

Keyboard shortcuts

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