honeybadger.Notice(MyErrorf("example"))
honeybadger.BeforeNotify(func(notice *honeybadger.Notice) error {
log.Printf("%T\n", notice.Error) // is a honeybadger.Error which doesn't expose the underlying error.
return nil
})
What happens?
before notify handlers receive a honeybadger.Notice, but the error being wrapped isn't accessible.
What were you expecting to happen?
I'd expect to be able to access the underlying cause using stdlib functions like unwrap, is, as. I'd also expect to be able to control the stack trace from error provided to the notice function.
What versions are you using?
Operating System: linux
Package Version: v0.6.0
Go Version: 1.21
What are the steps to reproduce this issue?
What happens?
before notify handlers receive a honeybadger.Notice, but the error being wrapped isn't accessible.
What were you expecting to happen?
I'd expect to be able to access the underlying cause using stdlib functions like unwrap, is, as. I'd also expect to be able to control the stack trace from error provided to the notice function.
What versions are you using?
Operating System: linux Package Version: v0.6.0 Go Version: 1.21