dont ignore all tracing logs for sentry

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-30 01:16:45 -04:00 committed by June
parent 350d25a368
commit 6fa2e0814c

View file

@ -35,8 +35,6 @@ use ruma::api::{
}, },
IncomingRequest, IncomingRequest,
}; };
#[cfg(feature = "sentry_telemetry")]
use sentry_tracing::EventFilter;
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))] #[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
use tikv_jemallocator::Jemalloc; use tikv_jemallocator::Jemalloc;
use tokio::{ use tokio::{
@ -151,10 +149,7 @@ fn main() {
}; };
#[cfg(feature = "sentry_telemetry")] #[cfg(feature = "sentry_telemetry")]
let sentry_layer = sentry_tracing::layer().event_filter(|md| match md.level() { let sentry_layer = sentry_tracing::layer();
&Level::ERROR => EventFilter::Event,
_ => EventFilter::Ignore,
});
let subscriber; let subscriber;