sentry/sentry-symfony
The official Sentry SDK for Symfony. Install via Composer, add your SENTRY_DSN to .env, and capture exceptions from anywhere in your app. Get real-time error tracking and performance monitoring with minimal setup.
data_collection controls, product and engineering can decide which sensitive event/span data is attached—user info, HTTP headers via allowList, HTTP bodies, and database query data—supporting data-minimization policies and reducing third-party data exposure risk.data_collection settings to limit PII, headers, request bodies, and query data sent to Sentry.Adopt if:
data_collection to disable user info, allowList specific headers, exclude HTTP bodies, or disable database query data.Look elsewhere if:
set_error_handler; use sentry/sentry directly.data_collection option improves minimization and redaction, but it does not remove the need for vendor/security review.For Executives:
"This package integrates Sentry’s error monitoring into our Symfony app with minimal code changes for basic setup. It turns critical failures into actionable alerts, reducing downtime by surfacing issues like slow API calls or background job crashes automatically. The 5.14.0 release also adds configurable data_collection, so we can control whether user info, HTTP headers, request bodies, and database query data are attached to events. That means we get production visibility without abandoning privacy and compliance guardrails. If a payment processor fails, we can see the error, user context, and transaction trace in Sentry while limiting sensitive payloads—cutting debugging time without creating a data-governance blind spot."
For Engineering:
*"The sentry/sentry-symfony bundle gives us:
captureException calls needed for many cases.sentry.yaml and .env.data_collection for user info, HTTP headers with allowList terms, HTTP bodies, and database query data—so we can tune payloads per environment and compliance requirement.For DevOps/SRE: *"This simplifies incident response by:
FatalError.data_collection to disable user info, allowList only safe headers such as x-request-id, exclude HTTP bodies, and turn off database query data where needed.How can I help you explore Laravel packages today?