From d697b3766a97dedecab2c22e0a273fc7f069ae26 Mon Sep 17 00:00:00 2001 From: Chad Patel Date: Wed, 27 Sep 2023 11:31:49 -0500 Subject: [PATCH] fix linter error, test error --- exporter/awsemfexporter/emf_exporter.go | 4 ++-- internal/aws/cwlogs/cwlog_client_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",