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 exceptions from errors #20

Merged
merged 1 commit into from
Nov 23, 2021
Merged

Add exceptions from errors #20

merged 1 commit into from
Nov 23, 2021

Conversation

grongor
Copy link
Collaborator

@grongor grongor commented Sep 1, 2021

Also some related refactoring of the core

@TheZeroSlave TheZeroSlave self-assigned this Sep 10, 2021
@TheZeroSlave
Copy link
Owner

@grongor hi, sorry for delay. could you rebase or merge master? there are some conflicts

@grongor
Copy link
Collaborator Author

grongor commented Sep 30, 2021

@TheZeroSlave np, I'll look into it tomorrow

Also some related refactoring of the core
@grongor
Copy link
Collaborator Author

grongor commented Oct 1, 2021

@TheZeroSlave done

@grongor
Copy link
Collaborator Author

grongor commented Nov 18, 2021

@TheZeroSlave hey, soooo...let's do this? :D

@TheZeroSlave
Copy link
Owner

TheZeroSlave commented Nov 19, 2021

@grongor hey, sorry for absent. will check in couple of days

Value: ent.Caller.TrimmedPath(),
Stacktrace: trace,
}}
if event.Exception == nil && !c.cfg.DisableStacktrace && c.client.Options().AttachStacktrace {
Copy link
Owner

Choose a reason for hiding this comment

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

we skip it for exceptions because it already contains stacktrace?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. I don't think it makes sense to create an artificial stack trace from "another place" when we already have one which is as exact as can be.


func (c *core) addExceptionsFromError(
exceptions []sentry.Exception,
processedErrors map[error]struct{},
Copy link
Owner

@TheZeroSlave TheZeroSlave Nov 19, 2021

Choose a reason for hiding this comment

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

i see no references to "processedErrors" outside this function. should it really be passed as argument?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is shared between invocations, so yes. Its used to de-duplicate the errors.

@TheZeroSlave TheZeroSlave merged commit 051a995 into TheZeroSlave:master Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants