From: Felix Geisendörfer Date: Tue, 19 Aug 2025 14:51:39 +0000 (+0200) Subject: internal/trace: use RFC3339Nano for wall clock snapshots in Event.String X-Git-Tag: go1.26rc1~1061 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=de2d7416679f4f383da6a1e7dfc52845911845c4;p=gostls13.git internal/trace: use RFC3339Nano for wall clock snapshots in Event.String Improve the quality of life for people who use go tool trace -d=parsed to look at clock snapshot wall timestamps. Many use cases will benefit from seing the timestamp in sub-second resolution. Change-Id: I6a6a696403a2164db0c12789c764e22a5c519b1c Reviewed-on: https://go-review.googlesource.com/c/go/+/697355 LUCI-TryBot-Result: Go LUCI Auto-Submit: Michael Knyszek Reviewed-by: Carlos Amedee Reviewed-by: Michael Knyszek --- diff --git a/src/internal/trace/event.go b/src/internal/trace/event.go index 0204c2b5f5..a47f71b65e 100644 --- a/src/internal/trace/event.go +++ b/src/internal/trace/event.go @@ -879,7 +879,7 @@ func (e Event) String() string { fmt.Fprintf(&sb, " Trace=%d Mono=%d Wall=%s", s.ClockSnapshot.Trace, s.ClockSnapshot.Mono, - s.ClockSnapshot.Wall.Format(time.RFC3339), + s.ClockSnapshot.Wall.Format(time.RFC3339Nano), ) } }