@@ -372,8 +372,8 @@ def _deterministic_sha256_hash(s: str, part: str) -> int:
372372
373373def _parse_high_64_bits (trace_tags : str ) -> str :
374374 """
375- Parse a list of trace tags such as [_dd.p.tid=66bcb5eb00000000,_dd.p.dm=-0] and return the value of the _dd.p.tid
376- tag or an empty string if not found.
375+ Parse a list of trace tags such as [_dd.p.tid=66bcb5eb00000000,_dd.p.dm=-0] and return the
376+ value of the _dd.p.tid tag or an empty string if not found.
377377 """
378378 if trace_tags :
379379 for tag in trace_tags .split ("," ):
@@ -395,11 +395,11 @@ def _generate_sfn_parent_id(context: dict) -> int:
395395
396396def _generate_sfn_trace_id (execution_id : str , part : str ):
397397 """
398- Take the SHA-256 hash of the execution_id to calculate the trace ID. If the high 64 bits are specified, we take
399- those bits and use hex to encode it. We also remove the first two characters as they will be '0x in the hex string.
398+ Take the SHA-256 hash of the execution_id to calculate the trace ID. If the high 64 bits are
399+ specified, we take those bits and use hex to encode it. We also remove the first two characters
400+ as they will be '0x in the hex string.
400401
401402 We care about full 128 bits because they will break up into traditional traceID and _dd.p.tid tag.
402- https://github.com/DataDog/dd-trace-py/blob/3e34d21cb9b5e1916e549047158cb119317b96ab/ddtrace/propagation/http.py#L232-L240
403403 """
404404 if part == HIGHER_64_BITS :
405405 return hex (_deterministic_sha256_hash (execution_id , part ))[2 :]
@@ -416,7 +416,8 @@ def extract_context_from_step_functions(event, lambda_context):
416416 2. Root is a SFN, and we use its executionARN to calculate the traceID
417417 We calculate the parentID the same in both cases by using the parent SFN's context object.
418418
419- Otherwise, we're dealing with the legacy case where we only have the parent SFN's context object.
419+ Otherwise, we're dealing with the legacy case where we only have the parent SFN's context
420+ object.
420421 """
421422 try :
422423 meta = {}
0 commit comments