Closed flimzy closed 7 years ago
One possible improvement could be made on this PR, and if requested, I'm happy to implement the changes. And that is that by using the causer
interface, it becomes possible to report multiple exceptions, which Sentry supports. Thus, in principle, we could go through all wrapped errors, and generate a Sentry exception interface for each one.
The only reason I didn't do this right away is that for my own application, and possibly for others, all that we really care about is the causing error. The various wrappers around it are often/usually extraneous, and would present duplicate information.
@flimzy Thanks! 🐎
This PR adds support for two interfaces, implemented by the github.com/pkg/errors package:
Stacktracer
interface introduced by https://github.com/evalphobia/logrus_sentry/commit/162f5c6ab032c7151ea4129cc1d2f22ace3d9a55