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.

        Source Files