Replace sentry-tracing with 'tracing' feature on core crate (#6227)

This commit is contained in:
Arya 2023-02-27 17:26:40 -05:00 committed by GitHub
parent 1366662cde
commit 5f10af4184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

2
Cargo.lock generated
View File

@ -3738,6 +3738,7 @@ dependencies = [
"sentry-backtrace",
"sentry-contexts",
"sentry-core",
"sentry-tracing",
"tokio",
"ureq",
"webpki-roots",
@ -5733,7 +5734,6 @@ dependencies = [
"reqwest",
"semver 1.0.16",
"sentry",
"sentry-tracing",
"serde",
"serde_json",
"tempfile",

View File

@ -34,7 +34,7 @@ getblocktemplate-rpcs = [
"zebra-chain/getblocktemplate-rpcs",
]
sentry = ["dep:sentry", "sentry-tracing"]
sentry = ["dep:sentry"]
flamegraph = ["tracing-flame", "inferno"]
journald = ["tracing-journald"]
filter-reload = ["hyper"]
@ -135,8 +135,7 @@ num-integer = "0.1.45"
rand = { version = "0.8.5", package = "rand" }
# prod feature sentry
sentry-tracing = { version = "0.29.3", optional = true }
sentry = { version = "0.29.3", default-features = false, features = ["backtrace", "contexts", "reqwest", "rustls"], optional = true }
sentry = { version = "0.29.3", default-features = false, features = ["backtrace", "contexts", "reqwest", "rustls", "tracing"], optional = true }
# prod feature flamegraph
tracing-flame = { version = "0.2.0", optional = true }

View File

@ -154,7 +154,7 @@ impl Tracing {
let subscriber = subscriber.with(journaldlayer);
#[cfg(feature = "sentry")]
let subscriber = subscriber.with(sentry_tracing::layer());
let subscriber = subscriber.with(sentry::integrations::tracing::layer());
// spawn the console server in the background, and apply the console layer
// TODO: set Builder::poll_duration_histogram_max() if needed