@@ -33,14 +33,14 @@ struct Cli {
3333}
3434
3535fn main ( ) -> ExitCode {
36- // We use a sync main for Sentry. Read more: https://docs.sentry.io/platforms/rust/#async-main-function
37-
38- // This has a 2 second deadline to flush any remaining events which is sufficient for
39- // short-lived commands.
40- let _guard = sentry:: init ( ( "https://b329eb15c63e1002611fb3b7a58a1dfa@o4504307129188352.ingest.us.sentry.io/4508361147809792" , sentry:: ClientOptions {
41- release : sentry:: release_name!( ) ,
42- ..Default :: default ( )
43- } ) ) ;
36+ // // We use a sync main for Sentry. Read more: https://docs.sentry.io/platforms/rust/#async-main-function
37+ //
38+ // // This has a 2 second deadline to flush any remaining events which is sufficient for
39+ // // short-lived commands.
40+ // let _guard = sentry::init(("https://b329eb15c63e1002611fb3b7a58a1dfa@o4504307129188352.ingest.us.sentry.io/4508361147809792", sentry::ClientOptions {
41+ // release: sentry::release_name!(),
42+ // ..Default::default()
43+ // }));
4444
4545 // Run main
4646 let exit_code = tokio:: runtime:: Builder :: new_multi_thread ( )
@@ -81,18 +81,18 @@ async fn main_async() -> ExitCode {
8181 exit_code
8282}
8383
84- async fn report_error ( err : anyhow:: Error ) {
85- let event_id = sentry:: integrations:: anyhow:: capture_anyhow ( & err) ;
84+ async fn report_error ( _err : anyhow:: Error ) {
85+ // let event_id = sentry::integrations::anyhow::capture_anyhow(&err);
8686
8787 // Capture event in PostHog
88- util:: telemetry:: capture_event (
89- "$exception" ,
90- Some ( |event : & mut async_posthog:: Event | {
91- event. insert_prop ( "errors" , format ! ( "{}" , err) ) ?;
92- event. insert_prop ( "$sentry_event_id" , event_id. to_string ( ) ) ?;
93- event. insert_prop ( "$sentry_url" , format ! ( "https://sentry.io/organizations/rivet-gaming/issues/?project=4508361147809792&query={event_id}" ) ) ?;
94- Ok ( ( ) )
95- } ) ,
96- )
97- . await ;
88+ // util::telemetry::capture_event(
89+ // "$exception",
90+ // Some(|event: &mut async_posthog::Event| {
91+ // event.insert_prop("errors", format!("{}", err))?;
92+ // event.insert_prop("$sentry_event_id", event_id.to_string())?;
93+ // event.insert_prop("$sentry_url", format!("https://sentry.io/organizations/rivet-gaming/issues/?project=4508361147809792&query={event_id}"))?;
94+ // Ok(())
95+ // }),
96+ // )
97+ // .await;
9898}
0 commit comments