Skip to content

Commit f40312e

Browse files
committed
update go capture-error docs
1 parent f6c9581 commit f40312e

File tree

1 file changed

+2
-1
lines changed
  • platform-includes/capture-error

1 file changed

+2
-1
lines changed

platform-includes/capture-error/go.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
To capture an event in Go, you can pass any struct implementing an `error` interface to `CaptureException()`. If you use a 3rd party library instead of native `errors` package, we'll do our best to extract a stack trace.
1+
To capture an event in Go, you can pass any struct implementing an `error` interface to `CaptureException()`. If you use a 3rd party library instead of native `errors` package and it implements `Unwrap() error` or `Cause() error` method, we'll follow the chain of errors and extract the stack trace from the root cause.
22

33
The SDK is fully compatible with (but not limited to):
44

55
- `github.com/pkg/errors`
66
- `github.com/go-errors/errors`
77
- `github.com/pingcap/errors`
8+
- `github.com/rotisserie/eris`
89

910
If there is an errors package that's not working out of the box, let us know!
1011

0 commit comments

Comments
 (0)