Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeMatcher ¶
type AttributeMatcher struct { Key string // If both AttributeValue and StringFilter are nil only check for key existence. AttributeValue *valueIdentifier // StringFilter is needed to match against a regular expression StringFilter filterset.FilterSet }
AttributeMatcher is a attribute key/value pair to match to.
type AttributesMatcher ¶
type AttributesMatcher []AttributeMatcher
func NewAttributesMatcher ¶
func NewAttributesMatcher(config filterset.Config, attributes []filterconfig.Attribute) (AttributesMatcher, error)
type PropertiesMatcher ¶
type PropertiesMatcher struct {
// contains filtered or unexported fields
}
PropertiesMatcher allows matching a span against various span properties.
func NewMatcher ¶
func NewMatcher(mp *filterconfig.MatchProperties) (PropertiesMatcher, error)
NewMatcher creates a span Matcher that matches based on the given MatchProperties.
func (*PropertiesMatcher) Match ¶
func (mp *PropertiesMatcher) Match(attributes pcommon.Map, resource pcommon.Resource, library pcommon.InstrumentationScope) bool
Match matches a span or log to a set of properties.
Click to show internal directories.
Click to hide internal directories.