filterspan

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipSpan

func SkipSpan(include Matcher, exclude Matcher, span pdata.Span, resource pdata.Resource, library pdata.InstrumentationLibrary) bool

SkipSpan determines if a span should be processed. True is returned when a span should be skipped. False is returned when a span should not be skipped. The logic determining if a span should be processed is set in the attribute configuration with the include and exclude settings. Include properties are checked before exclude settings are checked.

Types

type Matcher

type Matcher interface {
	MatchSpan(span pdata.Span, resource pdata.Resource, library pdata.InstrumentationLibrary) bool
}

TODO: Modify Matcher to invoke both the include and exclude properties so calling processors will always have the same logic. Matcher is an interface that allows matching a span against a configuration of a match.

func NewMatcher

func NewMatcher(mp *filterconfig.MatchProperties) (Matcher, error)

NewMatcher creates a span Matcher that matches based on the given MatchProperties.

Jump to

Keyboard shortcuts

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