-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
config.go
43 lines (33 loc) · 1.21 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2024-present Datadog, Inc.
package infraattributesprocessor
import (
"go.opentelemetry.io/collector/component"
"github.com/DataDog/datadog-agent/comp/core/tagger/types"
)
// Config defines configuration for processor.
type Config struct {
Metrics MetricInfraAttributes `mapstructure:"metrics"`
Logs LogInfraAttributes `mapstructure:"logs"`
Traces TraceInfraAttributes `mapstructure:"traces"`
Cardinality types.TagCardinality `mapstructure:"cardinality"`
}
// MetricInfraAttributes - configuration for metrics.
type MetricInfraAttributes struct {
MetricInfraAttributes []string `mapstructure:"metric"`
}
// TraceInfraAttributes - configuration for trace spans.
type TraceInfraAttributes struct {
SpanInfraAttributes []string `mapstructure:"span"`
}
// LogInfraAttributes - configuration for logs.
type LogInfraAttributes struct {
LogInfraAttributes []string `mapstructure:"log"`
}
var _ component.Config = (*Config)(nil)
// Validate configuration
func (cfg *Config) Validate() error {
return nil
}