Skip to content

Commit

Permalink
update go capture-error docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ribice committed Dec 20, 2024
1 parent f6c9581 commit f40312e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform-includes/capture-error/go.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
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.
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.

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

- `github.com/pkg/errors`
- `github.com/go-errors/errors`
- `github.com/pingcap/errors`
- `github.com/rotisserie/eris`

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

Expand Down

0 comments on commit f40312e

Please sign in to comment.