errorx icon indicating copy to clipboard operation
errorx copied to clipboard

Structured stack trace

Open njspok opened this issue 4 years ago • 1 comments

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.

njspok avatar Apr 17 '20 08:04 njspok

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

PeterIvanov avatar Apr 17 '20 08:04 PeterIvanov