Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for errors.Unwrap() in SetException #792

Merged
merged 12 commits into from Mar 26, 2024
Merged

Conversation

ribice
Copy link
Collaborator

@ribice ribice commented Mar 8, 2024

Add support for handling errors using errors.Unwrap() in SetException.

Add ParentID, ExceptionID and Source to Exception.

Related issue: #693

RFC

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

Attention: Patch coverage is 97.05882% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 82.06%. Comparing base (08cdc59) to head (cc8fda7).

Files Patch % Lines
interfaces.go 97.05% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #792      +/-   ##
==========================================
+ Coverage   81.97%   82.06%   +0.08%     
==========================================
  Files          49       49              
  Lines        4848     4872      +24     
==========================================
+ Hits         3974     3998      +24     
  Misses        732      732              
  Partials      142      142              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cleptric
cleptric previously approved these changes Mar 12, 2024
interfaces.go Outdated Show resolved Hide resolved
interfaces.go Outdated Show resolved Hide resolved
@cleptric cleptric dismissed their stale review March 13, 2024 10:09

Further changes are required

interfaces.go Outdated Show resolved Hide resolved
client_test.go Outdated Show resolved Hide resolved
interfaces_test.go Outdated Show resolved Hide resolved
@ribice ribice requested a review from cleptric March 13, 2024 14:16
@ribice ribice marked this pull request as ready for review March 13, 2024 23:09
@ribice ribice requested a review from phacops March 17, 2024 17:49
util.go Outdated Show resolved Hide resolved
interfaces.go Outdated Show resolved Hide resolved
ribice and others added 3 commits March 26, 2024 14:07
Co-authored-by: Ivan Dlugos <6349682+vaind@users.noreply.github.com>
Copy link
Collaborator

@vaind vaind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after a changelog entry is added

@ribice ribice requested a review from vaind March 26, 2024 16:44
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Ivan Dlugos <6349682+vaind@users.noreply.github.com>
@ribice ribice merged commit 7b5b621 into getsentry:master Mar 26, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants