@@ -51,7 +51,7 @@ def _apply_botocore_lambda_patch() -> None:
5151
5252 This patch adds an extension to the upstream's list of known extensions for Lambda.
5353 Extensions allow for custom logic for adding service-specific information to spans,
54- such as attributes. Specifically, we are adding logic to add the
54+ such as attributes. Specifically, we are adding logic to add the
5555 `aws.lambda.function.name` and `aws.lambda.resource_mapping.id` attributes
5656
5757 Sidenote: There exists SpanAttributes.FAAS_INVOKED_NAME for invoke operations
@@ -70,7 +70,7 @@ def patch_extract_attributes(self, attributes: _AttributeMapT):
7070 if resource_mapping_id :
7171 attributes [AWS_LAMBDA_RESOURCEMAPPING_ID ] = resource_mapping_id
7272
73- old_on_success = _LambdaExtension .on_success
73+ old_on_success = _LambdaExtension .on_success
7474
7575 def patch_on_success (self , span : Span , result : _BotoResultT ):
7676 old_on_success (self , span , result )
@@ -86,7 +86,7 @@ def patch_on_success(self, span: Span, result: _BotoResultT):
8686def _apply_botocore_stepfunctions_patch () -> None :
8787 """Botocore instrumentation patch for StepFunctions
8888
89- This patch adds an extension to the upstream's list of known extensions for
89+ This patch adds an extension to the upstream's list of known extensions for
9090 StepFunctions. Extensions allow for custom logic for adding service-specific
9191 information to spans, such as attributes. Specifically, we are adding logic
9292 to add the `aws.stepfunctions.state_machine.arn` and `aws.stepfunctions.activity.arn`
@@ -101,7 +101,7 @@ def _apply_botocore_sns_patch() -> None:
101101
102102 This patch adds an extension to the upstream's list of known extensions for SNS.
103103 Extensions allow for custom logic for adding service-specific information to
104- spans, such as attributes. Specifically, we are adding logic to add the
104+ spans, such as attributes. Specifically, we are adding logic to add the
105105 `aws.sns.topic.arn` attribute, to be used to generate RemoteTarget and achieve
106106 parity with the Java instrumentation.
107107
@@ -119,12 +119,13 @@ def patch_extract_attributes(self, attributes: _AttributeMapT):
119119
120120 _SnsExtension .extract_attributes = patch_extract_attributes
121121
122+
122123def _apply_botocore_secretsmanager_patch () -> None :
123124 """Botocore instrumentation patch for SecretsManager
124125
125126 This patch adds an extension to the upstream's list of known extension for SecretsManager.
126127 Extensions allow for custom logic for adding service-specific information to spans, such as
127- attributes. Specifically, we are adding logic to add the `aws.secretsmanager.secret.arn`
128+ attributes. Specifically, we are adding logic to add the `aws.secretsmanager.secret.arn`
128129 attribute, to be used to generate RemoteTarget and achieve parity with the Java
129130 instrumentation.
130131 """
0 commit comments