-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable sentry's debug-images feature (#375)
which produced errors when sentry ingests events getsentry/sentry-rust#574
- Loading branch information
Showing
5 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// Return a `sentry::::ClientOptions` w/ the `debug-images` integration | ||
/// disabled | ||
pub fn client_options() -> sentry::ClientOptions { | ||
// debug-images conflicts w/ our debug = 1 rustc build option: | ||
// https://github.com/getsentry/sentry-rust/issues/574 | ||
let mut opts = sentry::apply_defaults(sentry::ClientOptions::default()); | ||
opts.integrations.retain(|i| i.name() != "debug-images"); | ||
opts.default_integrations = false; | ||
opts | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters