Skip to content

Commit 897e2ab

Browse files
ribicecleptric
andauthored
Update Go capture-error docs (#12199)
Co-authored-by: Michi Hoffmann <[email protected]>
1 parent d65cc9a commit 897e2ab

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 the native `errors` package and it implements the `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)