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

Support RUST_BACKTRACE #2187

Closed
szokeasaurusrex opened this issue Oct 21, 2024 · 0 comments · Fixed by #2189
Closed

Support RUST_BACKTRACE #2187

szokeasaurusrex opened this issue Oct 21, 2024 · 0 comments · Fixed by #2189
Assignees

Comments

@szokeasaurusrex
Copy link
Member

Because of the logic to exit Sentry CLI with a specific code, backtraces are not printed by default in Sentry CLI. This makes it harder to debug issues, since we don't always know where in code an error originates from. With RUST_BACKTRACE support, we can instruct users experiencing errors to set the environment variable.

Changes likely need to be made here:

pub fn main() {

szokeasaurusrex added a commit that referenced this issue Oct 22, 2024
The `anyhow` crate we use for error handling adds stack backtraces errors whenever [certain standard environment variables](https://doc.rust-lang.org/std/backtrace/index.html#environment-variables) are set (e.g. when `RUST_BACKTRACE=1`).

Modify our error-printing logic to include these stack backtraces when printing errors that crash Sentry CLI, so that users can add this information to bug reports.

Closes #2187
@szokeasaurusrex szokeasaurusrex self-assigned this Oct 22, 2024
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 a pull request may close this issue.

1 participant