Skip to content

Commit ed20079

Browse files
Merge pull request #57 from DataDog/darcy.rayner/downcase_function_arn
Lowercase function arn in trace metadata
2 parents 9b62ced + ec425f6 commit ed20079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datadog_lambda/tracing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,10 @@ def create_function_execution_span(
238238
):
239239
tags = {}
240240
if context:
241+
function_arn = (context.invoked_function_arn or "").lower()
241242
tags = {
242243
"cold_start": str(is_cold_start).lower(),
243-
"function_arn": context.invoked_function_arn,
244+
"function_arn": function_arn,
244245
"request_id": context.aws_request_id,
245246
"resource_names": context.function_name,
246247
}

0 commit comments

Comments
 (0)