Skip to content

Commit

Permalink
Replace sentry-tracing with 'tracing' feature on core crate
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Feb 24, 2023
1 parent 3ac019d commit 7eedca7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions zebrad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -136,8 +136,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 }
Expand Down
2 changes: 1 addition & 1 deletion zebrad/src/components/tracing/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7eedca7

Please sign in to comment.