Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions opentelemetry-api/src/opentelemetry/trace/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def format_trace_id(trace_id: int) -> str:
trace_id: Trace ID int

Returns:
The trace ID as 32-byte hexadecimal string
The trace ID (16 bytes) cast to a 32-character hexadecimal string
"""
return format(trace_id, "032x")

Expand All @@ -603,6 +603,6 @@ def format_span_id(span_id: int) -> str:
span_id: Span ID int

Returns:
The span ID as 16-byte hexadecimal string
The span ID (8 bytes) cast to a 16-character hexadecimal string
"""
return format(span_id, "016x")
Loading