Quick and dirty annotations for Go stack traces
CloudFlare's DNS server, RRDNS, is written in Go and uses thousands of goroutines. Debugging stack traces with numerous goroutines can be challenging due to the presence of memory addresses instead of meaningful information. To address this issue, Filippo Valsorda developed a method that converts IPv4 addresses into their uint32 representation and passes them as parameters in listening goroutines. This allows for easier identification of the IP addresses on which goroutines are listening when examining stack traces. The technique can be applied to any piece of information that can be represented as an integer.
Company
Cloudflare
Date published
Aug. 3, 2015
Author(s)
Filippo Valsorda
Word count
464
Language
English
Hacker News points
None found.