getsentry / sentry-go

The official Go SDK for Sentry (sentry.io)
https://docs.sentry.io/platforms/go/
MIT License
899 stars 211 forks source link

Signal handler to capture stack of all goroutines #119

Open rhcarvalho opened 4 years ago

rhcarvalho commented 4 years ago

It is often helpful to get a stack dump by sending SIGQUIT to a Go program (Ctrl+\ if attached with a terminal). Looking at blocked goroutines can help find live locks.

We could have a signal handler integration or other mechanism that would send a full stack trace to Sentry.

l0nax commented 3 years ago

Any updates on this @rhcarvalho?

rhcarvalho commented 3 years ago

@l0nax, I have not put further thoughts into this, it was just an idea. Do you have a concrete use case?

l0nax commented 3 years ago

It would be helpful for our current project to have a look over all go-routines. Besides of that – we are currently working on it, because on Windows such core dumps aren't currently created – I'm unaware of the current support on sentry's side to show multiple Threads/Go-Routines.

We want, at least, to be able to upload those core dumps – but this is part of another issue.

github-actions[bot] commented 1 year ago

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀