Skip to content

Commit ee0591a

Browse files
garyatwalAIclaude
andcommitted
fix(tracing): correct docstring for _now_ns helper
Remove misleading "monotonic" qualifier — time.time_ns() returns wall-clock time, which is correct for OTel span timestamps. Signed-off-by: Gary Atwal <garyatwalai@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cad0103 commit ee0591a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nemoguardrails/tracing/governance_enricher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def _span_is_recording(span: Span) -> bool:
441441

442442

443443
def _now_ns() -> int:
444-
"""Return the current time in nanoseconds (monotonic wall clock)."""
444+
"""Return the current wall-clock time in nanoseconds."""
445445
return time.time_ns()
446446

447447

0 commit comments

Comments
 (0)