Skip to content

Commit ffefa15

Browse files
committed
Cleanup comments
1 parent 317b367 commit ffefa15

File tree

13 files changed

+12
-13
lines changed

13 files changed

+12
-13
lines changed

component/otelcol/processor/resourcedetection/internal/aws/ecs/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (args *Config) Convert() map[string]interface{} {
4646
}
4747
}
4848

49-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/ecs resource attributes.
49+
// ResourceAttributesConfig provides config for ecs resource attributes.
5050
type ResourceAttributesConfig struct {
5151
AwsEcsClusterArn rac.ResourceAttributeConfig `river:"aws.ecs.cluster.arn,block,optional"`
5252
AwsEcsLaunchtype rac.ResourceAttributeConfig `river:"aws.ecs.launchtype,block,optional"`

component/otelcol/processor/resourcedetection/internal/aws/eks/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (args Config) Convert() map[string]interface{} {
3030
}
3131
}
3232

33-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/eks resource attributes.
33+
// ResourceAttributesConfig provides config for eks resource attributes.
3434
type ResourceAttributesConfig struct {
3535
CloudPlatform rac.ResourceAttributeConfig `river:"cloud.platform,block,optional"`
3636
CloudProvider rac.ResourceAttributeConfig `river:"cloud.provider,block,optional"`

component/otelcol/processor/resourcedetection/internal/aws/elasticbeanstalk/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (args Config) Convert() map[string]interface{} {
3333
}
3434
}
3535

36-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/elastic_beanstalk resource attributes.
36+
// ResourceAttributesConfig provides config for elastic_beanstalk resource attributes.
3737
type ResourceAttributesConfig struct {
3838
CloudPlatform rac.ResourceAttributeConfig `river:"cloud.platform,block,optional"`
3939
CloudProvider rac.ResourceAttributeConfig `river:"cloud.provider,block,optional"`

component/otelcol/processor/resourcedetection/internal/aws/lambda/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (args Config) Convert() map[string]interface{} {
3737
}
3838
}
3939

40-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/lambda resource attributes.
40+
// ResourceAttributesConfig provides config for lambda resource attributes.
4141
type ResourceAttributesConfig struct {
4242
AwsLogGroupNames rac.ResourceAttributeConfig `river:"aws.log.group.names,block,optional"`
4343
AwsLogStreamNames rac.ResourceAttributeConfig `river:"aws.log.stream.names,block,optional"`

component/otelcol/processor/resourcedetection/internal/azure/aks/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (args Config) Convert() map[string]interface{} {
3030
}
3131
}
3232

33-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/aks resource attributes.
33+
// ResourceAttributesConfig provides config for aks resource attributes.
3434
type ResourceAttributesConfig struct {
3535
CloudPlatform rac.ResourceAttributeConfig `river:"cloud.platform,block,optional"`
3636
CloudProvider rac.ResourceAttributeConfig `river:"cloud.provider,block,optional"`

component/otelcol/processor/resourcedetection/internal/azure/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (args Config) Convert() map[string]interface{} {
3838
}
3939
}
4040

41-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/azure resource attributes.
41+
// ResourceAttributesConfig provides config for azure resource attributes.
4242
type ResourceAttributesConfig struct {
4343
AzureResourcegroupName rac.ResourceAttributeConfig `river:"azure.resourcegroup.name,block,optional"`
4444
AzureVMName rac.ResourceAttributeConfig `river:"azure.vm.name,block,optional"`

component/otelcol/processor/resourcedetection/internal/consul/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (args Config) Convert() map[string]interface{} {
8383
}
8484
}
8585

86-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/consul resource attributes.
86+
// ResourceAttributesConfig provides config for consul resource attributes.
8787
type ResourceAttributesConfig struct {
8888
AzureResourcegroupName rac.ResourceAttributeConfig `river:"azure.resourcegroup.name,block,optional"`
8989
AzureVMName rac.ResourceAttributeConfig `river:"azure.vm.name,block,optional"`

component/otelcol/processor/resourcedetection/internal/docker/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (args Config) Convert() map[string]interface{} {
3030
}
3131
}
3232

33-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/docker resource attributes.
33+
// ResourceAttributesConfig provides config for docker resource attributes.
3434
type ResourceAttributesConfig struct {
3535
HostName rac.ResourceAttributeConfig `river:"host.name,block,optional"`
3636
OsType rac.ResourceAttributeConfig `river:"os.type,block,optional"`

component/otelcol/processor/resourcedetection/internal/gcp/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (args Config) Convert() map[string]interface{} {
4545
}
4646
}
4747

48-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/gcp resource attributes.
48+
// ResourceAttributesConfig provides config for gcp resource attributes.
4949
type ResourceAttributesConfig struct {
5050
CloudAccountID rac.ResourceAttributeConfig `river:"cloud.account.id,block,optional"`
5151
CloudAvailabilityZone rac.ResourceAttributeConfig `river:"cloud.availability_zone,block,optional"`

component/otelcol/processor/resourcedetection/internal/heroku/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (args Config) Convert() map[string]interface{} {
3636
}
3737
}
3838

39-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/heroku resource attributes.
39+
// ResourceAttributesConfig provides config for heroku resource attributes.
4040
type ResourceAttributesConfig struct {
4141
CloudProvider rac.ResourceAttributeConfig `river:"cloud.provider,block,optional"`
4242
HerokuAppID rac.ResourceAttributeConfig `river:"heroku.app.id,block,optional"`

component/otelcol/processor/resourcedetection/internal/k8snode/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (args Config) Convert() map[string]interface{} {
5959
}
6060
}
6161

62-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/k8snode resource attributes.
62+
// ResourceAttributesConfig provides config for k8snode resource attributes.
6363
type ResourceAttributesConfig struct {
6464
K8sNodeName rac.ResourceAttributeConfig `river:"k8s.node.name,block,optional"`
6565
K8sNodeUID rac.ResourceAttributeConfig `river:"k8s.node.uid,block,optional"`

component/otelcol/processor/resourcedetection/internal/system/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (args Config) Convert() map[string]interface{} {
6161
}
6262
}
6363

64-
// ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes.
64+
// ResourceAttributesConfig provides config for system resource attributes.
6565
type ResourceAttributesConfig struct {
6666
HostArch rac.ResourceAttributeConfig `river:"host.arch,block,optional"`
6767
HostCPUCacheL2Size rac.ResourceAttributeConfig `river:"host.cpu.cache.l2.size,block,optional"`

docs/sources/flow/reference/components/otelcol.processor.resourcedetection.md

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ For AWS, the below ordering is recommended:
8585
1. [eks][]
8686
1. [ecs][]
8787
1. [ec2][]
88-
<!-- TODO: Why do the otel docs also list a GCP ordering? There is only one GCP detector. -->
8988

9089
## Blocks
9190

0 commit comments

Comments
 (0)