-
Notifications
You must be signed in to change notification settings - Fork 246
Support Go 1.20 Unwrap() with a slice of errors #693
Copy link
Copy link
Closed
Labels
FeatureIssue typeIssue type
Description
Summary
Go 1.20 added another way to unwrap errors, interface { Unwrap() []error }. As far as I can see, as of now Event.SetException doesn't support it.
Lines 356 to 363 in cda691d
| switch previous := err.(type) { | |
| case interface{ Unwrap() error }: | |
| err = previous.Unwrap() | |
| case interface{ Cause() error }: | |
| err = previous.Cause() | |
| default: | |
| err = nil | |
| } |
Motivation
Developers are updating to Go 1.20, as Go 1.19 is EOL now, and they will expect sentry-go to support the new interface and include all errors into the event data.
Additional Context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FeatureIssue typeIssue type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status