getsentry / raven-go

Sentry client in Go
https://sentry.io
BSD 3-Clause "New" or "Revised" License
561 stars 148 forks source link

Support chained errors #120

Closed lumost closed 7 years ago

lumost commented 7 years ago

The full Sentry API supports chained Exceptions https://docs.sentry.io/clientdev/interfaces/exception/ however it appears that the go client de-duplicates all interfaces based on Class() over here

Would it be possible to allow a special case on interface type to send a list of errors?

0x4445565A commented 7 years ago

It wouldn't be a special case you simply have to implement the interface, which means create a struct (with json tags) that has a method Class()

You could probably hack up my solution for Breadcrumbs and do something similar https://github.com/getsentry/raven-go/issues/118#issuecomment-273364662