raven-go icon indicating copy to clipboard operation
raven-go copied to clipboard

CapturePanic for goroutines

Open vincentbernat opened this issue 9 years ago • 2 comments

Hey!

Is there a way to add a global panic handler? Using CapturePanic limits the scope to the current go routine. A cursory search seems to indicate nothing in Go allows one to install such a handler.

vincentbernat avatar Jul 20 '16 08:07 vincentbernat

Another option would be to provide an integration similar to panicwrap.

vincentbernat avatar Jul 22 '16 05:07 vincentbernat

I too am facing this issue. While panicwrap does capture panics, the data sent to Sentry via the panicwrap handler is incorrect.

The panic message shown in Sentry includes the original panic message, along with the stack trace. The stack trace shown in Sentry is simply the stack trace of the parent process, ie. from the panicwrap handler, and doesn't show the actual stack trace in which the panic originated.

Still looking for a solution for this.

SebastienStDenis avatar Oct 31 '16 14:10 SebastienStDenis