Skip to content

Commit cdc2402

Browse files
lym953claude
andcommitted
Rename durable span tags from aws_lambda.durable_function.* to aws.durable.*
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 53b46d4 commit cdc2402

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

datadog_lambda/durable.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def extract_durable_function_tags(event):
4747
operations = event.get("InitialExecutionState", {}).get("Operations", [])
4848
is_first_invocation = len(operations) == 1
4949
return {
50-
"aws_lambda.durable_function.execution_name": execution_name,
51-
"aws_lambda.durable_function.execution_id": execution_id,
52-
"aws_lambda.durable_function.first_invocation": str(
50+
"aws.durable.execution_name": execution_name,
51+
"aws.durable.execution_id": execution_id,
52+
"aws.durable.first_invocation": str(
5353
is_first_invocation
5454
).lower(),
5555
}

datadog_lambda/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def _after(self, event, context):
346346
durable_status = extract_durable_execution_status(self.response, event)
347347
if durable_status:
348348
self.span.set_tag(
349-
"aws_lambda.durable_function.execution_status",
349+
"aws.durable.execution_status",
350350
durable_status,
351351
)
352352

tests/test_durable.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def test_sets_first_invocation_true_when_only_execution_operation(self):
5757
self.assertEqual(
5858
result,
5959
{
60-
"aws_lambda.durable_function.execution_name": "my-execution",
61-
"aws_lambda.durable_function.execution_id": "550e8400-e29b-41d4-a716-446655440004",
62-
"aws_lambda.durable_function.first_invocation": "true",
60+
"aws.durable.execution_name": "my-execution",
61+
"aws.durable.execution_id": "550e8400-e29b-41d4-a716-446655440004",
62+
"aws.durable.first_invocation": "true",
6363
},
6464
)
6565

@@ -79,9 +79,9 @@ def test_sets_first_invocation_false_when_multiple_operations(self):
7979
self.assertEqual(
8080
result,
8181
{
82-
"aws_lambda.durable_function.execution_name": "my-execution",
83-
"aws_lambda.durable_function.execution_id": "550e8400-e29b-41d4-a716-446655440004",
84-
"aws_lambda.durable_function.first_invocation": "false",
82+
"aws.durable.execution_name": "my-execution",
83+
"aws.durable.execution_id": "550e8400-e29b-41d4-a716-446655440004",
84+
"aws.durable.first_invocation": "false",
8585
},
8686
)
8787

0 commit comments

Comments
 (0)