-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
New panic handler is not documented in the sentry crate #235
Comments
The sentry-rust/sentry/src/defaults.rs Lines 15 to 25 in 36218ea
And it will set itself as the panic handler automatically on setup, so no need to do that manually: sentry-rust/sentry-panic/src/lib.rs Lines 55 to 61 in 36218ea
Does that sufficiently answer your question? Or what kind of documentation would make this clearer? |
Yes, thank you. Automatic is much better than I expected — I thought I'd have to write a replacement for the function that has been removed. |
* `register_panic_handler()` is no longer needed, the handler is installed automatically. See getsentry/sentry-rust#235 * Running `cargo update` may be necessary due to rwf2/Rocket#1377
* `register_panic_handler()` is no longer needed, the handler is installed automatically. See getsentry/sentry-rust#235 * Running `cargo update` may be necessary due to rwf2/Rocket#1377
2266: fix: use forked metrics and forked sentry to fix RUSTSEC-2020-0041 temporarily r=yangby-cryptape a=yangby-cryptape ### Commits - [chore(deps): bump crossbeam-channel from 0.4.3 to 0.4.4](728f5c3) - [chore: remove direct dependencies of metrics exporters and observers](de3173a) - [chore(deps): bump sentry from 0.16.0 to 0.19.1](e6b00c5) - [The module `sentry::internals` was deprecated.](https://github.com/getsentry/sentry-rust/blob/0.19.1/sentry/src/lib.rs#L133) - [`Sentry` will set itself as the panic handler automatically on setup, so no need to do that manually](../../../../getsentry/sentry-rust/issues/235#issuecomment-654832365) - [chore: replace several dependencies sentry by sentry-core and sentry-log](80af819) - [fix: use patched versions of metrics and sentry to fix RUSTSEC-2020-0041 temporarily](1eb9e0b) - [Changes of forked `metrics`](nervosnetwork/sentry-rust@1cdb9ff) - [Changes of forked `sentry`](nervosnetwork/metrics-rs@4fd13f6) ### References - [RUSTSEC-2020-0041](../../../../rustsec/advisory-db/pull/381) Co-authored-by: Boyu Yang <[email protected]>
2266: fix: use forked metrics and forked sentry to fix RUSTSEC-2020-0041 temporarily r=yangby-cryptape a=yangby-cryptape ### Commits - [chore(deps): bump crossbeam-channel from 0.4.3 to 0.4.4](728f5c3) - [chore: remove direct dependencies of metrics exporters and observers](de3173a) - [chore(deps): bump sentry from 0.16.0 to 0.19.1](e6b00c5) - [The module `sentry::internals` was deprecated.](https://github.com/getsentry/sentry-rust/blob/0.19.1/sentry/src/lib.rs#L133) - [`Sentry` will set itself as the panic handler automatically on setup, so no need to do that manually](../../../../getsentry/sentry-rust/issues/235#issuecomment-654832365) - [chore: replace several dependencies sentry by sentry-core and sentry-log](80af819) - [fix: use patched versions of metrics and sentry to fix RUSTSEC-2020-0041 temporarily](1eb9e0b) - [Changes of forked `metrics`](nervosnetwork/sentry-rust@1cdb9ff) - [Changes of forked `sentry`](nervosnetwork/metrics-rs@4fd13f6) ### References - [RUSTSEC-2020-0041](../../../../rustsec/advisory-db/pull/381) Co-authored-by: Boyu Yang <[email protected]>
It's hard to find documentation on replacement for
register_panic_handler()
Documentation search: https://docs.rs/sentry/0.19.0/sentry/?search=panic finds https://docs.rs/sentry/0.19.0/sentry/integrations/panic/fn.panic_handler.html
but that function is just:
but documentation doesn't have an example how this function is meant to be used. To me it looks like some internal callback, so I'm not sure if I'm supposed to install a panic hook myself.
The changelog says:
but there's no information how the new integrations look like.
The text was updated successfully, but these errors were encountered: