diff --git a/opentelemetry-api/src/opentelemetry/trace/span.py b/opentelemetry-api/src/opentelemetry/trace/span.py index 6e54dfc7212..9bb0d4fd40b 100644 --- a/opentelemetry-api/src/opentelemetry/trace/span.py +++ b/opentelemetry-api/src/opentelemetry/trace/span.py @@ -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 cast to 32-character hexadecimal string (16 bytes) """ return format(trace_id, "032x") @@ -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 cast to 16-character hexadecimal string (8 bytes) """ return format(span_id, "016x")