feat(registry): add sentry tracing

This commit is contained in:
daimond113 2024-12-19 16:18:26 +01:00
parent 0f74e2efa3
commit 28df3bcca4
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C
2 changed files with 2 additions and 1 deletions

View file

@ -44,7 +44,7 @@ tracing = { version = "0.1.41", features = ["attributes"] }
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
tracing-actix-web = "0.7.15"
sentry = { version = "0.35.0", default-features = false, features = ["backtrace", "contexts", "debug-images", "panic", "reqwest", "rustls"] }
sentry = { version = "0.35.0", default-features = false, features = ["backtrace", "contexts", "debug-images", "panic", "reqwest", "rustls", "tracing"] }
sentry-actix = "0.35.0"
pesde = { path = "..", features = ["wally-compat"] }

View file

@ -219,6 +219,7 @@ fn main() -> std::io::Result<()> {
.compact()
.with_span_events(FmtSpan::NEW | FmtSpan::CLOSE),
)
.with(sentry::integrations::tracing::layer())
.init();
let guard = sentry::init(sentry::ClientOptions {