Skip to content

Errors to Sentry: every failure the app logs at error level, when SENTRY_DSN is set - #224

Open
ndbroadbent wants to merge 2 commits into
mainfrom
app-sentry
Open

ndbroadbent wants to merge 2 commits into
mainfrom
app-sentry

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Checked app/ Sentry reporting (from the 4 Dec sign-up blocker, where the first-build 500 left nothing in Sentry): app/ reported nothing to Sentry at all, and DocSpring's Sentry had no VisualCI project.

This adds Laravel Rust's documented setup (docs/logging.md, Sentry). Sentry's tracing layer gets every event at error level, which includes every failure Laravel's error handler logs, failed jobs and our own tracing::error!. Sentry starts in a boot hook, and the container holds the guard, so short commands flush on exit.

The release is the build's commit and the environment is APP_ENV. send_default_pii is off. With no SENTRY_DSN (dev, tests, self-hosting) nothing is sent.

Test: tests/sentry.rs, its own binary because the tracing subscriber and Sentry's hub are per process. An error the app logs reaches Sentry; a warning doesn't. Without the layer installed it gets 0 events.

Deploy: the DSN goes in Secret visualci-sentry as SENTRY_DSN (docs/deploy.md). I'm creating the Sentry project and asking talira infra to add the Secret.


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant