Quick and dirty annotations for Go stack traces
Aug 3, 2015Filippo Valsorda2 min read
Opens blog.cloudflare.comWhat the post covers
This post introduces a technique for improving the debuggability of Go stack traces by converting IPv4 addresses to their uint32 representation and passing this as a blank identifier parameter to goroutines.
- This allows engineers to quickly identify which network interface a specific goroutine is listening on by examining the stack trace, significantly aiding in troubleshooting issues within their large-scale Go applications like RRDNS.
More from the Data Infrastructure & Analytics trail
How we built Cloudflare's data platform and an AI agent on top of it
Our billing pipeline was suddenly slow. The culprit was a hidden bottleneck in ClickHouse
When "idle" isn't idle: how a Linux kernel optimization became a QUIC bug
Evolving Cloudflare’s Threat Intelligence Platform: actionable, scalable, and ETL-less
ASPA: making Internet routing more secure