Try sentry-tracing integration
This commit is contained in:
parent
8f958e3c05
commit
6a17549945
|
|
@ -40,7 +40,8 @@ dirs = "3.0.1"
|
||||||
inferno = { version = "0.10.2", default-features = false }
|
inferno = { version = "0.10.2", default-features = false }
|
||||||
atty = "0.2.14"
|
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]
|
[build-dependencies]
|
||||||
vergen = "3.1.0"
|
vergen = "3.1.0"
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,17 @@ use zebrad::application::APPLICATION;
|
||||||
/// Boot Zebrad
|
/// Boot Zebrad
|
||||||
fn main() {
|
fn main() {
|
||||||
if cfg!(feature = "enable-sentry") {
|
if cfg!(feature = "enable-sentry") {
|
||||||
|
let tracing_integration = sentry_tracing::TracingIntegration::default();
|
||||||
|
|
||||||
// The Sentry default config pulls in the DSN from the `SENTRY_DSN`
|
// The Sentry default config pulls in the DSN from the `SENTRY_DSN`
|
||||||
// environment variable.
|
// environment variable.
|
||||||
let _guard = sentry::init(sentry::ClientOptions {
|
let _guard = sentry::init(
|
||||||
|
sentry::ClientOptions {
|
||||||
debug: true,
|
debug: true,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
}
|
||||||
|
.add_integration(tracing_integration),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
abscissa_core::boot(&APPLICATION);
|
abscissa_core::boot(&APPLICATION);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue