From b9a00e08be7d81c9c7623d0dab1b67743c2cd2e5 Mon Sep 17 00:00:00 2001 From: Chad Patel Date: Tue, 26 Sep 2023 16:49:09 -0500 Subject: [PATCH] temporarily disable enhanced flag --- internal/aws/cwlogs/cwlog_client.go | 3 ++- internal/aws/cwlogs/cwlog_client_test.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/aws/cwlogs/cwlog_client.go b/internal/aws/cwlogs/cwlog_client.go index e82a9a562a15..811e22aa74fc 100644 --- a/internal/aws/cwlogs/cwlog_client.go +++ b/internal/aws/cwlogs/cwlog_client.go @@ -54,7 +54,8 @@ func NewClient(logger *zap.Logger, awsConfig *aws.Config, buildInfo component.Bu client := cloudwatchlogs.New(sess, awsConfig) client.Handlers.Build.PushBackNamed(handler.NewRequestCompressionHandler([]string{"PutLogEvents"}, logger)) client.Handlers.Build.PushBackNamed(handler.RequestStructuredLogHandler) - client.Handlers.Build.PushFrontNamed(newCollectorUserAgentHandler(buildInfo, logGroupName, enhancedContainerInsights)) + // temporarily disable the flag + client.Handlers.Build.PushFrontNamed(newCollectorUserAgentHandler(buildInfo, logGroupName /*enhancedContainerInsights*/, false)) return newCloudWatchLogClient(client, logRetention, tags, logger) } diff --git a/internal/aws/cwlogs/cwlog_client_test.go b/internal/aws/cwlogs/cwlog_client_test.go index b63c832ba06d..34244d5e51b6 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 (EnhancedEKSContainerInsights)", + "opentelemetry-collector-contrib/1.0 (ContainerInsights)", }, { "negative - enhanced container insights ECS",