match

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name  string `mapstructure:"name"`
	Value string `mapstructure:"value"`
}

type Logs added in v0.0.16

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

func NewLogs added in v0.0.16

func NewLogs(cfg []Match, opt ...Option) (*Logs, error)

func (*Logs) Match added in v0.0.16

func (t *Logs) Match(_ context.Context, logs plog.Logs) (found []Response, notFound []Response)

type Match

type Match struct {
	SemanticVersion string      `mapstructure:"semantic_version"`
	Match           string      `mapstructure:"match"`
	MatchAttributes []Attribute `mapstructure:"match_attributes"`

	Groups           []string `mapstructure:"groups"`
	Ignore           []string `mapstructure:"ignore"`
	Include          []string `mapstructure:"include"`
	ReportAdditional bool     `mapstructure:"report_additional"`
}

type Metrics added in v0.0.14

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

func NewMetrics added in v0.0.14

func NewMetrics(cfg []Match, opt ...Option) (*Metrics, error)

func (*Metrics) Match added in v0.0.14

func (m *Metrics) Match(_ context.Context, metrics pmetric.Metrics) (found []Response, notFound []Response)

type Option added in v0.0.14

type Option interface {
	// contains filtered or unexported methods
}

func WithMeterProvider added in v0.0.14

func WithMeterProvider(provider metric.MeterProvider) Option

func WithSemanticConventionGroups added in v0.0.14

func WithSemanticConventionGroups(versions map[string]semconv.SemanticVersion) Option

func WithTracerProvider added in v0.0.14

func WithTracerProvider(provider trace.TracerProvider) Option

type Response

type Response struct {
	Type string

	ResourceSchema string
	ServiceName    string

	ScopeName    string
	ScopeVersion string
	ScopeURL     string

	Name            string
	Attributes      []string
	ExtraAttributes []string
}

func (Response) GetScopeName

func (r Response) GetScopeName() string

type Traces

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

func NewTraces

func NewTraces(cfg []Match, opt ...Option) (*Traces, error)

func (*Traces) Match

func (t *Traces) Match(_ context.Context, traces ptrace.Traces) (found []Response, notFound []Response)

Jump to

Keyboard shortcuts

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