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.
Click to show internal directories.
Click to hide internal directories.