The Data Race Hiding Behind Correct Atomics

The metrics system used atomic.Pointer and atomic.AddUint64 everywhere -- except for one bare int index in a circular buffer. A textbook data race hiding in plain sight.