Skip to content

Commit d9aed8a

Browse files
committed
chore: change function name to snake case for linter
1 parent 779392e commit d9aed8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/_aws_metric_attribute_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def _set_remote_type_and_identifier(span: ReadableSpan, attributes: BoundedAttri
423423
)
424424
elif is_key_present(span, AWS_BEDROCK_GUARDRAIL_ID):
425425
remote_resource_type = _NORMALIZED_BEDROCK_SERVICE_NAME + "::Guardrail"
426-
remote_resource_identifier = _getBedrockIdentifierFromArn(
426+
remote_resource_identifier = _get_bedrock_identifier_from_arn(
427427
_escape_delimiters(span.attributes.get(AWS_BEDROCK_GUARDRAIL_ARN))
428428
)
429429
cloudformation_primary_identifier = _escape_delimiters(span.attributes.get(AWS_BEDROCK_GUARDRAIL_ARN))
@@ -482,7 +482,7 @@ def _set_remote_type_and_identifier(span: ReadableSpan, attributes: BoundedAttri
482482
attributes[AWS_CLOUDFORMATION_PRIMARY_IDENTIFIER] = cloudformation_primary_identifier
483483

484484

485-
def _getBedrockIdentifierFromArn(arn: str):
485+
def _get_bedrock_identifier_from_arn(arn: str):
486486
# NOTE: Bedrock Guardrail ARNs follow this pattern:
487487
# arn:aws:bedrock:<region>:<account_id>:guardrail/<identifier>
488488
return arn.split(":")[-1].split("/")[-1]

0 commit comments

Comments
 (0)