filtermatcher

package
v0.24.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeMatcher added in v0.18.0

type AttributeMatcher struct {
	Key string
	// If both AttributeValue and StringFilter are nil only check for key existence.
	AttributeValue *pdata.AttributeValue
	// StringFilter is needed to match against a regular expression
	StringFilter filterset.FilterSet
}

attributeMatcher is a attribute key/value pair to match to.

type AttributesMatcher added in v0.18.0

type AttributesMatcher []AttributeMatcher

func NewAttributesMatcher added in v0.18.0

func NewAttributesMatcher(config filterset.Config, attributes []filterconfig.Attribute) (AttributesMatcher, error)

func (AttributesMatcher) Match added in v0.18.0

func (ma AttributesMatcher) Match(attrs pdata.AttributeMap) bool

match attributes specification against a span/log.

type PropertiesMatcher

type PropertiesMatcher struct {
	// contains filtered or unexported fields
}

propertiesMatcher allows matching a span against various span properties.

func NewMatcher

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

func (*PropertiesMatcher) Match

func (mp *PropertiesMatcher) Match(attributes pdata.AttributeMap, resource pdata.Resource, library pdata.InstrumentationLibrary) bool

Match matches a span or log to a set of properties.

Jump to

Keyboard shortcuts

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