From a1e2affce215e76f14d5e1b1054ca01b6ee50001 Mon Sep 17 00:00:00 2001 From: Alex Kats Date: Fri, 23 Feb 2024 10:52:48 -0500 Subject: [PATCH] resolved conflict --- processor/resourcedetectionprocessor/internal/aws/ec2/ec2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/resourcedetectionprocessor/internal/aws/ec2/ec2.go b/processor/resourcedetectionprocessor/internal/aws/ec2/ec2.go index c41b469f5601..d640c6e94f44 100644 --- a/processor/resourcedetectionprocessor/internal/aws/ec2/ec2.go +++ b/processor/resourcedetectionprocessor/internal/aws/ec2/ec2.go @@ -87,7 +87,7 @@ func (d *Detector) Detect(ctx context.Context) (resource pcommon.Resource, schem if len(d.tagKeyRegexes) != 0 { client := getClientConfig(ctx, d.logger) - tags, err := connectAndFetchEc2Tags(meta.Region, meta.InstanceID, d.tagKeyRegexes, client) + tags, err := connectAndFetchEc2Tags(d.ec2Client, meta.Region, meta.InstanceID, d.tagKeyRegexes, client) if err != nil { d.logger.Warn("failed fetching ec2 instance tags", zap.Error(err)) } else {