Skip to content

Commit

Permalink
temporarily disable enhanced flag
Browse files Browse the repository at this point in the history
  • Loading branch information
chadpatel committed Sep 26, 2023
1 parent 346e94a commit b9a00e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/aws/cwlogs/cwlog_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
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 (EnhancedEKSContainerInsights)",
"opentelemetry-collector-contrib/1.0 (ContainerInsights)",
},
{
"negative - enhanced container insights ECS",
Expand Down

0 comments on commit b9a00e0

Please sign in to comment.