/plushcap/analysis/cloudflare/quick-and-dirty-annotations-for-go-stack-traces

Quick and dirty annotations for Go stack traces

What's this blog post about?

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

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.