Skip to content

Commit 8c23cec

Browse files
committed
chore: Manually fixing linter errors
1 parent c700a4f commit 8c23cec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_botocore_patches.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ def _apply_botocore_sns_patch() -> None:
3737
"""Botocore instrumentation patch for SNS
3838
3939
This patch extends the existing upstream extension for SNS. Extensions allow for custom
40-
logic for adding service-specific information to spans, such as attributes. Specifically, we are adding logic to add
41-
the `aws.sns.topic.arn` attribute, to be used to generate AWS_REMOTE_RESOURCE_TYPE and AWS_REMOTE_RESOURCE_IDENTIFIER.
42-
There exists SpanAttributes.MESSAGING_DESTINATION_NAME in the upstream logic that we could re-purpose here. However,
43-
we are not using it here to maintain consistent naming patterns with other AWS resources.
40+
logic for adding service-specific information to spans, such as attributes.
41+
Specifically, we are adding logic to add the `aws.sns.topic.arn` attribute,
42+
to be used to generate AWS_REMOTE_RESOURCE_TYPE and AWS_REMOTE_RESOURCE_IDENTIFIER.
43+
There exists SpanAttributes.MESSAGING_DESTINATION_NAME in the upstream logic that we could
44+
re-purpose here. However, we are not using it here to maintain consistent naming patterns
45+
with other AWS resources.
4446
"""
4547
old_extract_attributes = _SnsExtension.extract_attributes
4648

0 commit comments

Comments
 (0)