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

ref(symbolication): Preserve and propagate errors better #365

Merged
merged 4 commits into from
Jan 26, 2021

Conversation

flub
Copy link
Contributor

@flub flub commented Jan 25, 2021

The error reporting here was all truncated to "cancelled" or "timeout"
with no extra information, resulting in opaque errors like "internal
errror" with no other information. This changes a number of functions
over to anyhow::Error with cause chainging. Only top-level timeouts
are still propagated as SymbolicationError::Timeout with some inner
onces being mapped to anyhow::Error, which now maps into
SymbolicationError::Canceled.

Error reporting in the request future now also logs the error instead
of only capturing it in Sentry. This allows also getting the errors
during test runs and other debugging.

#skip-changelog

The error reporting here was all truncated to "cancelled" or "timeout"
with no extra information, resulting in opaque errors like "internal
errror" with no other information.  This changes a number of functions
over to anyhow::Error with cause chainging.  Only top-level timeouts
are still propagated as SymbolicationError::Timeout with some inner
onces being mapped to anyhow::Error, which now maps into
SymbolicationError::Canceled.

Error reporting in the request future now also logs the error instead
of only capturing it in Sentry.  This allows also getting the errors
during test runs and other debugging.
@flub flub requested a review from a team January 25, 2021 12:07
src/actors/symbolication.rs Outdated Show resolved Hide resolved
src/actors/symbolication.rs Outdated Show resolved Hide resolved
src/actors/symbolication.rs Outdated Show resolved Hide resolved
Floris Bruynooghe added 3 commits January 26, 2021 09:21
This only wraps inner errors.
This was only saved for things which aren't a timeout.  Let's not
change this now.
@flub flub merged commit 1645cf9 into master Jan 26, 2021
@flub flub deleted the ref/symbolication-errors branch January 26, 2021 11:26
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.

3 participants