joomcode / errorx

A comprehensive error handling library for Go
MIT License
1.13k stars 29 forks source link

Structured stack trace #27

Open njspok opened 4 years ago

njspok commented 4 years ago

How i can extract stack trace from this library Error type like at https://github.com/pkg/errors library?

type stackTracer interface {
        StackTrace() errors.StackTrace
}
err.(stackTracer).StackTrace() // get structured stack trace

If use something fmt.Errorf("%+v", err), but return only text. I have use this library, but cant look good stack trace in sentry and cant write converter/adapter for Error type.

PeterIvanov commented 4 years ago

We should add this feature, yes, thank you. There isn't, at the moment.