Project ideas from Hacker News discussions.

Tracing Goroutines in Realtime with eBPF

📝 Discussion Summary (Click to expand)

Summary of thethree most prevalent themes

Theme Supporting quotations
1. Looking for async‑Rust equivalents “Cool! is there something similar for async rust ?” — xtoilette
2. EBPF/Dtrace techniques for leak detection “Interesting to see an ebpf approach to this idea… I did not think of observing the ‘castgstatus’ runtime function.” — broken_broken_
3. Perceived rarity and safety of Go goroutine leaks “how common is it for go devs to experience leaking goroutines ? id like to think go is a lot less shoot yourself in the foot … ive only needed to use goroutines once and it was a pretty problem‑free experience.” — Anonymous

🚀 Project Ideas

Goroutine Leak Hunterfor Go

Summary

  • A lightweight CLI/agent that attaches to running Go processes to detect leaking goroutines by sampling runtime.stats, focusing on castgstatus transitions and stack growth.
  • Provides instant alerts and root‑cause suggestions (e.g., missing channel close, unbounded goroutine pool) to prevent production outages.

Details

Key Value
Target Audience Go service engineers and SREs in production environments
Core Feature Real‑time leak detection using EBPF probes on runtime.castgstatus and stack‑size metrics, with multi‑Go‑version support
Tech Stack eBPF (libbpf-rs), Go SDK, Prometheus client, JSON API
Difficulty Medium
Monetization Revenue-ready: SaaS subscription per host

Notes- HN users praised EBPF and castgstatus observation as a way to catch leaks earlier; they asked about Go version compatibility.

  • Would be a must‑have tool for teams looking to eliminate mysterious goroutine spikes in live services.

Async Rust Leak Detector (ARD)

Summary

  • A profiling library and CLI that monitors async task lifecycles in Rust runtimes (Tokio, async‑std) to flag tasks that never poll or complete, mirroring Go’s goroutine leak detection.
  • Generates actionable diagnostics and visual graphs to help developers refactor asynchronous code before leaks cause resource exhaustion.

Details| Key | Value |

|-----|-------| | Target Audience | Rust developers working with async runtimes and CI pipelines | | Core Feature | Runtime introspection using poll‑event hooks and stack‑size estimation, combined with an async‑aware flamegraph exporter | | Tech Stack | Rust, tracing, svg crate for diagrams | | Difficulty | Medium | | Monetization | Revenue-ready: Open‑source with optional paid CI integration via GitHub Marketplace |

Notes

  • Commenters expressed interest in a Rust equivalent of Go’s runtime stats; they asked about multi‑runtime support.
  • Would fill a gap in the Rust ecosystem where async leaks are hard to spot without custom instrumentation.

Goroutine Health Dashboard (GHD) SaaS

Summary- A hosted observability platform that connects to Go services via a tiny sidecar agent, continuously surfacing runtime.stats including castgstatus, goroutine counts, and stack‑growth anomalies.

  • Offers alerting, dashboards, and a “leak‑risk score” that helps teams prioritize debugging without manual profiling.

Details

Key Value
Target Audience DevOps teams and platform engineers managing large Go fleets
Core Feature Continuous ingestion of runtime metrics via eBPF sidecar, risk scoring, and alerting UI
Tech Stack Go agent, Graphite/TSDB, React dashboard, Kubernetes operator
Difficulty High
Monetization Revenue-ready: Tiered SaaS pricing (free tier, $0.01 per GB‑month of metrics)

Notes- HN discussion highlighted the need for multi‑version support and easy integration; users want a “single pane of glass”.

  • Would let teams compare DTrace vs EBPF approaches in production, satisfying the community’s desire for richer debugging tools.

Read Later