From 28df3bcca42db985231580c02287fc4acb3746e7 Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:18:26 +0100 Subject: [PATCH] feat(registry): add sentry tracing --- registry/Cargo.toml | 2 +- registry/src/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/Cargo.toml b/registry/Cargo.toml index 9d1cd4b..53d7f67 100644 --- a/registry/Cargo.toml +++ b/registry/Cargo.toml @@ -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"] } diff --git a/registry/src/main.rs b/registry/src/main.rs index 9c39bad..238b5c0 100644 --- a/registry/src/main.rs +++ b/registry/src/main.rs @@ -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 {