filterspan

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 added in v0.13.0

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
}

Matcher is an interface that allows matching a span against a configuration of a match. TODO: Modify Matcher to invoke both the include and exclude properties so

calling processors will always have the same logic.

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