diff --git a/syncserver/src/main.rs b/syncserver/src/main.rs index 14468b91c7..e5d56f214e 100644 --- a/syncserver/src/main.rs +++ b/syncserver/src/main.rs @@ -32,18 +32,24 @@ async fn main() -> Result<(), Box> { let settings = Settings::with_env_and_config_file(args.flag_config.as_deref())?; init_logging(!settings.human_logs).expect("Logging failed to initialize"); debug!("Starting up..."); + // Set SENTRY_DSN environment variable to enable Sentry. // Avoid its default reqwest transport for now due to issues w/ // likely grpcio's boringssl let curl_transport_factory = |options: &sentry::ClientOptions| { Arc::new(sentry::transports::CurlHttpTransport::new(options)) as Arc }; - let _sentry = sentry::init(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 { // Note: set "debug: true," to diagnose sentry issues transport: Some(Arc::new(curl_transport_factory)), release: sentry::release_name!(), ..sentry::ClientOptions::default() }); + opts.integrations.retain(|i| i.name() != "debug-images"); + opts.default_integrations = false; + let _sentry = sentry::init(opts); // Setup and run the server let banner = settings.banner();