Skip to content

Commit cae62b1

Browse files
committed
rename stepfunctions to states
1 parent 6abb3f3 commit cae62b1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

datadog_lambda/tracing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ def _generate_sfn_trace_id(execution_id: str, part: str):
399399
specified, we take those bits and use hex to encode it. We also remove the first two characters
400400
as they will be '0x in the hex string.
401401
402-
We care about full 128 bits because they will break up into traditional traceID and _dd.p.tid tag.
402+
We care about full 128 bits because they will break up into traditional traceID and
403+
_dd.p.tid tag.
403404
"""
404405
if part == HIGHER_64_BITS:
405406
return hex(_deterministic_sha256_hash(execution_id, part))[2:]
File renamed without changes.

tests/test_trigger.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_event_source_sqs(self):
231231
)
232232

233233
def test_event_source_stepfunctions(self):
234-
event_sample_source = "stepfunctions"
234+
event_sample_source = "states"
235235
test_file = event_samples + event_sample_source + ".json"
236236
with open(test_file, "r") as event:
237237
event = json.load(event)
@@ -500,7 +500,7 @@ def test_extract_trigger_tags_sqs(self):
500500
)
501501

502502
def test_extract_trigger_tags_stepfunctions(self):
503-
event_sample_source = "stepfunctions"
503+
event_sample_source = "states"
504504
test_file = event_samples + event_sample_source + ".json"
505505
ctx = get_mock_context()
506506
with open(test_file, "r") as event:
@@ -509,7 +509,7 @@ def test_extract_trigger_tags_stepfunctions(self):
509509
self.assertEqual(
510510
tags,
511511
{
512-
"function_trigger.event_source": "stepfunctions",
512+
"function_trigger.event_source": "states",
513513
"function_trigger.event_source_arn": "arn:aws:states:ca-central-1:425362996713:stateMachine:MyStateMachine-wsx8chv4d",
514514
},
515515
)

0 commit comments

Comments
 (0)