From 8f510f24a46746fda501e6a084fb9e84c979f01f Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 4 Dec 2026 17:47:09 +0000 Subject: [PATCH 1/2] Errors to Sentry: every failure the app logs at error level, when SENTRY_DSN is set --- Cargo.lock | 410 ++++++++++++++++++++++++++++++++++++++++++++ app/Cargo.toml | 9 + app/src/lib.rs | 20 +++ app/tests/sentry.rs | 19 ++ docs/deploy.md | 1 + 5 files changed, 459 insertions(+) create mode 100644 app/tests/sentry.rs diff --git a/Cargo.lock b/Cargo.lock index f47e5ec6..0cce6c27 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -207,6 +207,29 @@ version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" +[[package]] +name = "aws-lc-rs" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "048006790404103c488e6c5616b3e7e702a71292aadda08e8f7698a9e0d2eb53" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.47.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bfbe32ac36b3c428696ce315464181bc4029d689fd58e3f2a4e58c252242f52" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", + "pkg-config", +] + [[package]] name = "axum" version = "0.8.9" @@ -355,6 +378,15 @@ dependencies = [ "hybrid-array", ] +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + [[package]] name = "blowfish" version = "0.10.0" @@ -578,6 +610,15 @@ dependencies = [ "zeroize", ] +[[package]] +name = "cmake" +version = "0.1.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" +dependencies = [ + "cc", +] + [[package]] name = "cmov" version = "0.5.4" @@ -855,6 +896,16 @@ dependencies = [ "syn 3.0.10", ] +[[package]] +name = "debugid" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d" +dependencies = [ + "serde", + "uuid", +] + [[package]] name = "der" version = "0.7.10" @@ -902,6 +953,16 @@ dependencies = [ "ctutils", ] +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags", + "objc2", +] + [[package]] name = "displaydoc" version = "0.2.7" @@ -928,6 +989,12 @@ version = "0.15.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + [[package]] name = "dyn-clone" version = "1.0.20" @@ -1136,6 +1203,12 @@ dependencies = [ "windows-sys 0.101.0", ] +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + [[package]] name = "futures" version = "0.3.34" @@ -1377,6 +1450,17 @@ dependencies = [ "digest 0.11.3", ] +[[package]] +name = "hostname" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "617aaa3557aef3810a6369d0a99fac8a080891b68bd9f9812a1eeda0c0730cbd" +dependencies = [ + "cfg-if", + "libc", + "windows-link 0.2.1", +] + [[package]] name = "http" version = "1.6.0" @@ -2910,6 +2994,18 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" +[[package]] +name = "nix" +version = "0.31.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bc81ce8148d3b4f3274da811f11cdd824ae661ee4ef732cdb229825cf5be7f7" +dependencies = [ + "bitflags", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "nom" version = "8.0.0" @@ -3070,6 +3166,36 @@ dependencies = [ "url", ] +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + [[package]] name = "objc2-core-foundation" version = "0.3.2" @@ -3077,6 +3203,95 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ "bitflags", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags", + "block2", + "libc", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags", + "objc2", + "objc2-core-foundation", + "objc2-foundation", ] [[package]] @@ -3088,6 +3303,37 @@ dependencies = [ "objc2-core-foundation", ] +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", +] + [[package]] name = "object" version = "0.40.0" @@ -3115,6 +3361,22 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" +[[package]] +name = "os_info" +version = "3.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cf20a545b305cf1da722b236b5155c9bb35f1d5ceb28c048bd96ca842f41b5b" +dependencies = [ + "android_system_properties", + "log", + "nix", + "objc2", + "objc2-foundation", + "objc2-ui-kit", + "serde", + "windows-sys 0.61.2", +] + [[package]] name = "parking" version = "2.2.1" @@ -3330,6 +3592,7 @@ version = "0.11.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe" dependencies = [ + "aws-lc-rs", "bytes", "getrandom 0.4.3", "lru-slab", @@ -3577,6 +3840,7 @@ checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" dependencies = [ "base64 0.23.1", "bytes", + "futures-channel", "futures-core", "futures-util", "http", @@ -3590,6 +3854,7 @@ dependencies = [ "mime_guess", "percent-encoding", "pin-project-lite", + "quinn", "rustls", "rustls-pki-types", "rustls-platform-verifier", @@ -3744,6 +4009,8 @@ version = "0.23.47" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ac0e747c10d93d873fd4c50b26ef47ad92d1bfb48f6922003bb514070f6e88c" dependencies = [ + "aws-lc-rs", + "log", "once_cell", "ring", "rustls-pki-types", @@ -3807,6 +4074,7 @@ version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ + "aws-lc-rs", "ring", "rustls-pki-types", "untrusted", @@ -3935,6 +4203,103 @@ version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +[[package]] +name = "sentry" +version = "0.49.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa951f4e644464ebfd2347a7ab03b0828c512d2448a76262cad2607b343dff4" +dependencies = [ + "cfg_aliases", + "httpdate", + "reqwest 0.13.5", + "rustls", + "sentry-backtrace", + "sentry-contexts", + "sentry-core", + "sentry-panic", + "sentry-tracing", + "tokio", + "ureq", +] + +[[package]] +name = "sentry-backtrace" +version = "0.49.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f27cf048aa63ccd5bc94c29989133eabb82e9c6bf7441b58e9d4a95837a105" +dependencies = [ + "backtrace", + "regex", + "sentry-core", +] + +[[package]] +name = "sentry-contexts" +version = "0.49.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5ed680585dbdacdf9859c2b4dc53358ff02bd256766882e22e343836db36b22" +dependencies = [ + "hostname", + "libc", + "os_info", + "rustc_version", + "sentry-core", + "uname", +] + +[[package]] +name = "sentry-core" +version = "0.49.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3ed398494bb8fc412a11a182c1883a10ae147587b8f6314abd222d1d626f31b" +dependencies = [ + "rand 0.10.4", + "sentry-types", + "serde", + "serde_json", + "url", +] + +[[package]] +name = "sentry-panic" +version = "0.49.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7153e68642b761ed3aa62c022795c11b2facc728b2db7484084492373c944f9" +dependencies = [ + "sentry-backtrace", + "sentry-core", +] + +[[package]] +name = "sentry-tracing" +version = "0.49.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e7db1aefdf623f4e48e21ec9e4af535024187aeafb2a4cc7e29d035def5a13" +dependencies = [ + "bitflags", + "sentry-backtrace", + "sentry-core", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "sentry-types" +version = "0.49.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c18bf7b159bdfc7c8f97816f476b4947a1937fb6bea9d38d3479e58631614ac" +dependencies = [ + "debugid", + "hex", + "rand 0.10.4", + "serde", + "serde_json", + "thiserror", + "time", + "url", + "uuid", +] + [[package]] name = "serde" version = "1.0.229" @@ -4844,6 +5209,15 @@ dependencies = [ "web-time", ] +[[package]] +name = "uname" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b72f89f0ca32e4db1c04e2a72f5345d59796d4866a1ee0609084569f73683dc8" +dependencies = [ + "libc", +] + [[package]] name = "unicase" version = "2.10.0" @@ -4923,6 +5297,34 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" +[[package]] +name = "ureq" +version = "3.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ac5cecf619ca81f66a96482db09687c9f7465af65f4300a8c30cca05bd5a59d" +dependencies = [ + "base64 0.23.1", + "log", + "percent-encoding", + "rustls", + "rustls-pki-types", + "ureq-proto", + "utf8-zero", + "webpki-roots", +] + +[[package]] +name = "ureq-proto" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "622dce33c252115466d83f63e9744a18f12b4406aae51a01c15ad8fcf1185eb3" +dependencies = [ + "base64 0.23.1", + "http", + "httparse", + "log", +] + [[package]] name = "url" version = "2.5.9" @@ -4933,8 +5335,15 @@ dependencies = [ "idna", "percent-encoding", "serde", + "serde_derive", ] +[[package]] +name = "utf8-zero" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8c0a043c9540bae7c578c88f91dda8bd82e59ae27c21baca69c8b191aaf5a6e" + [[package]] name = "utf8_iter" version = "1.1.0" @@ -5010,6 +5419,7 @@ dependencies = [ "rsa", "rusty-s3", "schemars", + "sentry", "serde", "serde_json", "serde_path_to_error", diff --git a/app/Cargo.toml b/app/Cargo.toml index 129fbb78..b9a2b636 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -40,6 +40,10 @@ path = "tests/mcp_hosts.rs" name = "proxies" path = "tests/proxies.rs" +[[test]] +name = "sentry" +path = "tests/sentry.rs" + [[test]] name = "shutdown" path = "tests/shutdown.rs" @@ -72,6 +76,9 @@ globset = "0.4" schemars = "1" sqlx = { version = "0.9", default-features = false, features = ["runtime-tokio", "tls-rustls-ring", "postgres"] } tracing = "0.1" +# Errors to Sentry when SENTRY_DSN is set: every failure Laravel logs at error level (lib.rs) +sentry = { version = "0.49", default-features = false, features = ["backtrace", "contexts", "panic", "tracing", "reqwest", "rustls"] } +tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "registry"] } include_dir = "0.7" rmcp = { version = "3.12", features = ["server", "transport-streamable-http-server", "macros"] } tower = { version = "0.5", features = ["util"] } @@ -84,6 +91,8 @@ visualci-core = { path = "../crates/visualci-core", features = ["bundle"] } snapshot-diff = { path = "../crates/snapshot-diff" } [dev-dependencies] +# Sentry's test transport (tests/sentry.rs) +sentry = { version = "0.49", default-features = false, features = ["test"] } regex = "1" # Capturing logs in config.rs's tests tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "std"] } diff --git a/app/src/lib.rs b/app/src/lib.rs index a3934f6e..6344a6ba 100644 --- a/app/src/lib.rs +++ b/app/src/lib.rs @@ -28,8 +28,25 @@ use laravel::foundation::ApplicationBuilder; /// migration rebuilds it. const _MIGRATIONS_HASH: &str = env!("VISUALCI_MIGRATIONS_HASH"); +/// Sentry's settings: its DSN, environment and the rest from `SENTRY_*` (none set: Sentry stays off), and this build's +/// commit as the release. No request bodies, cookies or addresses are sent. +fn sentry_options() -> sentry::ClientOptions { + let mut options = sentry::ClientOptions::new(); + options.release = (http::status::COMMIT != "dev").then(|| http::status::COMMIT.into()); + options.environment = std::env::var("APP_ENV").ok().map(Into::into); + options.send_default_pii = false; + options +} + pub fn configure() -> ApplicationBuilder { Application::configure() + // Every failure Laravel logs at error level goes to Sentry too, when SENTRY_DSN is set + .with_logging(|logging, _| { + use tracing_subscriber::Layer; + logging.layer( + sentry::integrations::tracing::layer().with_filter(tracing_subscriber::filter::LevelFilter::ERROR), + ); + }) .with_migrations(laravel::db::migrations!("database/migrations")) .with_providers(|providers| { providers.add(auth::oauth::provider()); @@ -40,6 +57,8 @@ pub fn configure() -> ApplicationBuilder { // Every VisualCI setting, from the environment (config.rs) .with_config(config::install) .with_services(|app| { + // Started in a boot hook, after Laravel loads .env; the container keeps the guard, which flushes on exit + app.singleton(|_| async { Ok(sentry::init(sentry_options())) }); // Counts each request's GitHub calls against its budget (forge::calls) app.instance(forge::calls::client()); app.social().extend("gitlab", |config| forge::gitlab::Driver { @@ -47,6 +66,7 @@ pub fn configure() -> ApplicationBuilder { }); }) .booted(async |app| { + app.resolve::().await.map(drop)?; let config = app.config(); let production = config.app.env.is_production(); config::check(config)?; diff --git a/app/tests/sentry.rs b/app/tests/sentry.rs new file mode 100644 index 00000000..2e186688 --- /dev/null +++ b/app/tests/sentry.rs @@ -0,0 +1,19 @@ +//! Errors reach Sentry: every failure Laravel logs at error level goes through Sentry's tracing layer (lib.rs), so a +//! production 500 shows up there and not only in the pod's log. Its own test binary: Sentry's hub and the tracing +//! subscriber are per process. + +use laravel::testing::prelude::*; + +#[laravel::test] +async fn an_error_the_app_logs_reaches_sentry(app: Application) -> laravel::Result<()> { + // `run` installs the logger for every command; a test application doesn't, so install it as `run` does. + let _logging = app.init_logging().expect("the logger installs"); + let events = sentry::test::with_captured_events(|| { + tracing::warn!("a warning stays in the log"); + tracing::error!(build = 7, "the first build's request failed"); + }); + assert_eq!(events.len(), 1, "only the error: {events:?}"); + let message = events[0].message.clone().or_else(|| events[0].logentry.as_ref().map(|l| l.message.clone())); + assert!(message.is_some_and(|m| m.contains("the first build's request failed")), "{:?}", events[0]); + Ok(()) +} diff --git a/docs/deploy.md b/docs/deploy.md index 1d3696d0..db6249b2 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -63,6 +63,7 @@ app reads is in `app/src/config.rs`, and the generated reference is | `VISUALCI_POSTMARK_SERVER_TOKEN` | transactional email through the "VisualCI" Postmark server (1Password `talira-cluster/visualci-postmark`); production refuses to boot without it. `VISUALCI_MAIL_FROM`, `VISUALCI_MAIL_REPLY_TO` and `VISUALCI_TEAM_EMAIL` (support@visualci.com, which forwards to DocSpring's Intercom: new feedback and sign-ups go there) | | `VISUALCI_WAITLIST` | `true`: sign-ups join the waitlist | | `VISUALCI_*_HEARTBEAT_URL`, `_TOKEN` | the Gatus external endpoints the scheduled jobs push to (Monitoring, below) | +| `SENTRY_DSN` | the DSN of DocSpring Sentry's `visualci` project (Secret `visualci-sentry`): every error the app logs (a 500, a failed job) goes there, tagged with `APP_ENV` and the build's commit. Unset, nothing is sent. Sentry's own `SENTRY_*` variables also work | `VISUALCI_RENDERER_VERSION` is baked into both images from `docker/renderer.version`; don't set it. From 4abc4ee70486a74eb852eae5b8d6c77ac1fd4aab Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 4 Dec 2026 17:48:24 +0000 Subject: [PATCH 2/2] deploy.md: the Sentry project and where its DSN is --- docs/deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deploy.md b/docs/deploy.md index db6249b2..07263896 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -63,7 +63,7 @@ app reads is in `app/src/config.rs`, and the generated reference is | `VISUALCI_POSTMARK_SERVER_TOKEN` | transactional email through the "VisualCI" Postmark server (1Password `talira-cluster/visualci-postmark`); production refuses to boot without it. `VISUALCI_MAIL_FROM`, `VISUALCI_MAIL_REPLY_TO` and `VISUALCI_TEAM_EMAIL` (support@visualci.com, which forwards to DocSpring's Intercom: new feedback and sign-ups go there) | | `VISUALCI_WAITLIST` | `true`: sign-ups join the waitlist | | `VISUALCI_*_HEARTBEAT_URL`, `_TOKEN` | the Gatus external endpoints the scheduled jobs push to (Monitoring, below) | -| `SENTRY_DSN` | the DSN of DocSpring Sentry's `visualci` project (Secret `visualci-sentry`): every error the app logs (a 500, a failed job) goes there, tagged with `APP_ENV` and the build's commit. Unset, nothing is sent. Sentry's own `SENTRY_*` variables also work | +| `SENTRY_DSN` | the DSN of DocSpring Sentry's `visualci-prod-server` project (Secret `visualci-sentry`; 1Password `nathans-ai-agents/visualci-sentry-dsn`): every error the app logs (a 500, a failed job) goes there, tagged with `APP_ENV` and the build's commit. Unset, nothing is sent. Sentry's own `SENTRY_*` variables also work | `VISUALCI_RENDERER_VERSION` is baked into both images from `docker/renderer.version`; don't set it.