YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: add sentry tracing layer to app for error-level event capture
Louis Beaumont77f16917089b
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex b922a57e2..03e4cd02f 100755--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -8097,7 +8097,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.541"+version = "2.0.542"dependencies = ["anyhow","arboard",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 2a863adb6..5199eb13f 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.0.541"+version = "2.0.542"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""@@ -88,7 +88,7 @@ tauri-plugin-deep-link = "=2.4.6"once_cell = "1.20.0"tauri-plugin-sentry = "0.5.0"-sentry = "0.42"+sentry = { version = "0.42", features = ["tracing"] }regex = "1"raw-window-handle = "0.6"diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 7dda31c3a..f5ba86a38 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1539,11 +1539,20 @@ async fn main() {.with_writer(std::io::stdout).with_filter(EnvFilter::new("info,hyper=error,tower_http=error"));- // Initialize the tracing subscriber with both layers- tracing_subscriber::registry()- .with(file_layer)- .with(console_layer)- .init();+ // Initialize the tracing subscriber with both layers + optional Sentry layer+ // The Sentry layer captures error!() and warn!() events (not just panics)+ if sentry_guard.is_some() {+ tracing_subscriber::registry()+ .with(file_layer)+ .with(console_layer)+ .with(sentry::integrations::tracing::layer())+ .init();+ } else {+ tracing_subscriber::registry()+ .with(file_layer)+ .with(console_layer)+ .init();+ }// Windows-specific setupif cfg!(windows) {