From 6a17549945e2995d66d1bacae49c59aee9e6aadb Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Fri, 4 Dec 2020 17:23:43 -0500 Subject: [PATCH] Try sentry-tracing integration --- zebrad/Cargo.toml | 3 ++- zebrad/src/bin/zebrad/main.rs | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/zebrad/Cargo.toml b/zebrad/Cargo.toml index b57b8fb2..f57c126a 100644 --- a/zebrad/Cargo.toml +++ b/zebrad/Cargo.toml @@ -40,7 +40,8 @@ dirs = "3.0.1" inferno = { version = "0.10.2", default-features = false } atty = "0.2.14" -sentry = "0.19.0" +sentry = "0.21.0" +sentry-tracing = { git = "https://github.com/kellpossible/sentry-tracing.git", rev = "f1a4a4a16b5ff1022ae60be779eb3fb928ce9b0f" } [build-dependencies] vergen = "3.1.0" diff --git a/zebrad/src/bin/zebrad/main.rs b/zebrad/src/bin/zebrad/main.rs index ca5a916c..307424e4 100644 --- a/zebrad/src/bin/zebrad/main.rs +++ b/zebrad/src/bin/zebrad/main.rs @@ -8,12 +8,17 @@ use zebrad::application::APPLICATION; /// Boot Zebrad fn main() { if cfg!(feature = "enable-sentry") { + let tracing_integration = sentry_tracing::TracingIntegration::default(); + // The Sentry default config pulls in the DSN from the `SENTRY_DSN` // environment variable. - let _guard = sentry::init(sentry::ClientOptions { - debug: true, - ..Default::default() - }); + let _guard = sentry::init( + sentry::ClientOptions { + debug: true, + ..Default::default() + } + .add_integration(tracing_integration), + ); } abscissa_core::boot(&APPLICATION);