infraattributesprocessor

package
v0.0.0-...-4dd3f74 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package infraattributesprocessor implements a processor for augmenting tags.

Index

Constants

View Source
const (
	// TracesStability - stability level for traces.
	TracesStability = component.StabilityLevelAlpha
	// MetricsStability - stability level for metrics.
	MetricsStability = component.StabilityLevelAlpha
	// LogsStability - stability level for logs.
	LogsStability = component.StabilityLevelAlpha
)

Variables

View Source
var (
	// Type for infra attributes processor.
	Type = component.MustNewType("infraattributes")
)

Functions

func Meter

func Meter(settings component.TelemetrySettings) metric.Meter

Meter for infra attributes processor.

func NewFactory

func NewFactory(tagger tagger.Component) processor.Factory

NewFactory returns a new factory for the InfraAttributes processor.

func Tracer

func Tracer(settings component.TelemetrySettings) trace.Tracer

Tracer for infra attributes processor.

Types

type Config

type Config struct {
	Metrics MetricInfraAttributes `mapstructure:"metrics"`
	Logs    LogInfraAttributes    `mapstructure:"logs"`
	Traces  TraceInfraAttributes  `mapstructure:"traces"`

	Cardinality types.TagCardinality `mapstructure:"cardinality"`
}

Config defines configuration for processor.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate configuration

type LogInfraAttributes

type LogInfraAttributes struct {
	LogInfraAttributes []string `mapstructure:"log"`
}

LogInfraAttributes - configuration for logs.

type MetricInfraAttributes

type MetricInfraAttributes struct {
	MetricInfraAttributes []string `mapstructure:"metric"`
}

MetricInfraAttributes - configuration for metrics.

type TraceInfraAttributes

type TraceInfraAttributes struct {
	SpanInfraAttributes []string `mapstructure:"span"`
}

TraceInfraAttributes - configuration for trace spans.

Jump to

Keyboard shortcuts

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