Try sentry-tracing integration

This commit is contained in:
Deirdre Connolly 2020-12-04 17:23:43 -05:00 committed by Deirdre Connolly
parent 8f958e3c05
commit 6a17549945
2 changed files with 11 additions and 5 deletions

View File

@ -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"

View File

@ -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);