diff --git a/exporter/awsemfexporter/emf_exporter.go b/exporter/awsemfexporter/emf_exporter.go index 6edd05c528db..b565ba8d8cfd 100644 --- a/exporter/awsemfexporter/emf_exporter.go +++ b/exporter/awsemfexporter/emf_exporter.go @@ -199,7 +199,7 @@ func wrapErrorIfBadRequest(err error) error { return err } -func isEnhancedContainerInsights(config *Config) bool { - return false // temporarily disable +func isEnhancedContainerInsights(_ *Config) bool { + return false // temporarily disable, also need to rename _config to config // return config.EnhancedContainerInsights && !config.DisableMetricExtraction } diff --git a/internal/aws/cwlogs/cwlog_client_test.go b/internal/aws/cwlogs/cwlog_client_test.go index 767ab0a70334..b63c832ba06d 100644 --- a/internal/aws/cwlogs/cwlog_client_test.go +++ b/internal/aws/cwlogs/cwlog_client_test.go @@ -635,7 +635,7 @@ func TestUserAgent(t *testing.T) { component.BuildInfo{Command: "opentelemetry-collector-contrib", Version: "1.0"}, "/aws/containerinsights/eks-cluster-name/performance", true, - "opentelemetry-collector-contrib/1.0 (EnhancedContainerInsights)", + "opentelemetry-collector-contrib/1.0 (EnhancedEKSContainerInsights)", }, { "negative - enhanced container insights ECS",