/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

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.