Skip to content

Commit e029e29

Browse files
committed
chore: temporarily disable sentry
1 parent ff549fe commit e029e29

File tree

3 files changed

+25
-199
lines changed

3 files changed

+25
-199
lines changed

Cargo.lock

Lines changed: 1 addition & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/toolchain/cli/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ edition.workspace = true
99
name = "rivet"
1010
path = "src/main.rs"
1111

12-
[features]
13-
default = ["sentry"]
14-
sentry = []
12+
# [features]
13+
# default = ["sentry"]
14+
# sentry = []
1515

1616
[dependencies]
1717
clap = { version = "4.5.9", features = ["derive"] }
@@ -26,7 +26,7 @@ base64 = "0.22.1"
2626
kv-str.workspace = true
2727
inquire = "0.7.5"
2828
webbrowser = "1.0.2"
29-
sentry = { version = "0.37.0", default-features = false, features = ["anyhow", "backtrace", "contexts", "debug-images", "panic", "reqwest", "rustls"] }
29+
# sentry = { version = "0.37.0", default-features = false, features = ["anyhow", "backtrace", "contexts", "debug-images", "panic", "reqwest", "rustls"] }
3030
sysinfo = "0.32.0"
3131
ctrlc = "3.4.5"
3232
async-posthog.workspace = true

packages/toolchain/cli/src/main.rs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ struct Cli {
3333
}
3434

3535
fn 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

Comments
 (0)