From f40312ef4151e432759d67f9650bdf531f6414b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20Ribi=C4=87?= Date: Fri, 20 Dec 2024 18:56:00 +0100 Subject: [PATCH 1/2] update go capture-error docs --- platform-includes/capture-error/go.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform-includes/capture-error/go.mdx b/platform-includes/capture-error/go.mdx index 2da69a9f43b63..beaaa9e243e28 100644 --- a/platform-includes/capture-error/go.mdx +++ b/platform-includes/capture-error/go.mdx @@ -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! From debd8c48e3276212e64548b99408129483fe27b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20Ribi=C4=87?= Date: Fri, 20 Dec 2024 19:04:50 +0100 Subject: [PATCH 2/2] Update platform-includes/capture-error/go.mdx Co-authored-by: Michi Hoffmann --- platform-includes/capture-error/go.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-includes/capture-error/go.mdx b/platform-includes/capture-error/go.mdx index beaaa9e243e28..d008872015d35 100644 --- a/platform-includes/capture-error/go.mdx +++ b/platform-includes/capture-error/go.mdx @@ -1,4 +1,4 @@ -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. +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. The SDK is fully compatible with (but not limited to):