Documentation ¶
Overview ¶
Package infraattributesprocessor implements a processor for augmenting tags.
Index ¶
- Constants
- Variables
- func Meter(settings component.TelemetrySettings) metric.Meter
- func NewFactory(tagger taggerClient, generateID GenerateKubeMetadataEntityID) processor.Factory
- func Tracer(settings component.TelemetrySettings) trace.Tracer
- type Config
- type GenerateKubeMetadataEntityID
- type LogInfraAttributes
- type MetricInfraAttributes
- type TraceInfraAttributes
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 taggerClient, generateID GenerateKubeMetadataEntityID) processor.Factory
NewFactory returns a new factory for the InfraAttributes 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.
type GenerateKubeMetadataEntityID ¶
GenerateKubeMetadataEntityID is a function that generates an entity ID for a Kubernetes resource.
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.
Click to show internal directories.
Click to hide internal directories.