sblum/exception-enricher
A Laravel/PHP package that enriches exceptions with useful context, such as request, user, and application data, making logs and error reports more actionable. Add custom enrichment logic to improve debugging and observability.
Initial assessment based on v2.2.0. The package is a request-logging/observability add-on that captures request context and POST bodies into log records, with Monolog/Symfony integration. For a Laravel/PHP estate it fits as a low-coupling logging processor/channel rather than an application framework dependency. v2.2.0 materially improves the security posture by masking secret-like fields and reducing body capture at lower log levels, but it also changes the observability contract.
services.php change removing a hidden symfony/yaml dependency is a positive footprint reduction. Confirm the Laravel service-provider/auto-discovery path, since the release notes are framed around a Symfony bundle.WARNING and above. Teams relying on INFO/DEBUG request bodies for troubleshooting, replay, or audit will lose that data. Secret masking is high-value but heuristic: field-name substring matching can over-mask benign fields (e.g., tokenizer) and under-mask unrecognized secret names (e.g., passwd, pwd, custom credential headers). Bodies that cannot be masked are omitted entirely, which is fail-closed for security but can silently remove useful XML/text logs. The 2048-character truncation limits payload visibility and may cut diagnostic context. PHP 8.3+ is a runtime gate that can block adoption. Masking performance on large bodies depends on whether truncation occurs before scanning; verify.INFO/DEBUG? If so, can they move to WARNING or a separate audit channel?pwd, client_secret, authorization headers, cookies)?WARNING volume?monolog/monolog and symfony/* versions.INFO/DEBUG POST bodies, either raise those events to WARNING or accept loss and adjust runbooks. For critical XML/text payloads that may contain secret words, provide a separate redacted audit path rather than relying on this package's omission behavior.services.php and Symfony 8 fixes do not affect Laravel auto-discovery.IP, session, user, URI, user agent).WARNING, unmaskable body omitted, or truncation. Secret masking should reduce incident severity for leaked credentials, but false positives can make debugging harder. Provide examples of masked, omitted, and truncated records.INFO/DEBUG because bodies are no longer captured. WARNING+ records still carry up to 2048 characters, so high-warning-volume services should account for per-event storage and masking CPU. Omission of unmaskable bodies reduces storage but may increase mean time to diagnose XML/text issues. Test under production-like load, especially if large bodies are scanned before truncation.INFO/DEBUG POST data disappears; alerting must not assume body presence.INFO/DEBUG. SRE/observability teams need to update parsers and dashboards for truncation markers and absent body fields. Estimate roughly half a day for developer integration, 1–2 days for security review, and staging validation before canary rollout.How can I help you explore Laravel packages today?