Skip to content

Commit 25bd798

Browse files
committed
Revert "add missing logic to extract queue url for cfn primary id if available in queue name case" to scope down PR
This reverts commit 120a2a8.
1 parent 57e7ff4 commit 25bd798

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/aws-metric-attribute-generator.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,6 @@ export class AwsMetricAttributeGenerator implements MetricAttributeGenerator {
450450
remoteResourceIdentifier = AwsMetricAttributeGenerator.escapeDelimiters(
451451
span.attributes[AWS_ATTRIBUTE_KEYS.AWS_SQS_QUEUE_NAME]
452452
);
453-
// If queue URL is also present, use it as the CloudFormation primary identifier
454-
if (AwsSpanProcessingUtil.isKeyPresent(span, AWS_ATTRIBUTE_KEYS.AWS_SQS_QUEUE_URL)) {
455-
cloudFormationIdentifier = AwsMetricAttributeGenerator.escapeDelimiters(
456-
span.attributes[AWS_ATTRIBUTE_KEYS.AWS_SQS_QUEUE_URL]
457-
);
458-
}
459453
} else if (AwsSpanProcessingUtil.isKeyPresent(span, AWS_ATTRIBUTE_KEYS.AWS_SQS_QUEUE_URL)) {
460454
const sqsQueueUrl = AwsMetricAttributeGenerator.escapeDelimiters(
461455
span.attributes[AWS_ATTRIBUTE_KEYS.AWS_SQS_QUEUE_URL]

0 commit comments

Comments
 (0)