Skip to content

Commit

Permalink
fix linter error, test error
Browse files Browse the repository at this point in the history
  • Loading branch information
chadpatel committed Sep 27, 2023
1 parent c797be2 commit d697b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions exporter/awsemfexporter/emf_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion internal/aws/cwlogs/cwlog_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d697b37

Please sign in to comment.