Skip to content

Commit 7539001

Browse files
committed
Add awscontainerinsightspatch
1 parent 3459efd commit 7539001

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver/internal/host/hostinfo.go b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver/internal/host/hostinfo.go
2+
index c93bf0312..144c91575 100644
3+
--- a/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver/internal/host/hostinfo.go
4+
+++ b/vendor/github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver/internal/host/hostinfo.go
5+
@@ -78,6 +78,7 @@ func NewInfo(containerOrchestrator string, refreshInterval time.Duration, logger
6+
if err != nil {
7+
return nil, fmt.Errorf("failed to create aws session: %w", err)
8+
}
9+
+ mInfo.awsConfig = cfg
10+
11+
mInfo.ec2Metadata = mInfo.ec2MetadataCreator(ctx, cfg, refreshInterval, mInfo.instanceIDReadyC, mInfo.instanceIPReadyC, logger)
12+

0 commit comments

Comments
 (0)