Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Quick and dirty annotations for Go stack traces

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Filippo Valsorda
Word Count
464
Language
English
Hacker News Points
-
Summary

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.