Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ea3c0f

Browse files
mattydingxrmxemdneto
authored
Fix format_trace_id and format_span_id docstrings (open-telemetry#4570)
* update format_*_id docstrings * Apply suggestions from code review Co-authored-by: Emídio Neto <[email protected]> --------- Co-authored-by: Riccardo Magliocchetti <[email protected]> Co-authored-by: Emídio Neto <[email protected]>
1 parent c9ad4bc commit 6ea3c0f

File tree

1 file changed

+2
-2
lines changed
  • opentelemetry-api/src/opentelemetry/trace

1 file changed

+2
-2
lines changed

opentelemetry-api/src/opentelemetry/trace/span.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def format_trace_id(trace_id: int) -> str:
592592
trace_id: Trace ID int
593593
594594
Returns:
595-
The trace ID as 32-byte hexadecimal string
595+
The trace ID (16 bytes) cast to a 32-character hexadecimal string
596596
"""
597597
return format(trace_id, "032x")
598598

@@ -603,6 +603,6 @@ def format_span_id(span_id: int) -> str:
603603
span_id: Span ID int
604604
605605
Returns:
606-
The span ID as 16-byte hexadecimal string
606+
The span ID (8 bytes) cast to a 16-character hexadecimal string
607607
"""
608608
return format(span_id, "016x")

0 commit comments

Comments
 (0)