linkage-crm/critical-alerting-bundle
A PHP bundle for delivering critical alerts from your application, with configurable channels, severity levels, and reliable notification handling so urgent issues reach the right people quickly.
RequestContext and the referer field on AbstractNotification means alerts arriving in Telegram now carry the originating page/URL context. This directly informs whether to keep exception alerting inside the product team’s existing chat-ops workflow or migrate to a dedicated observability vendor.TelegramNotification::__toString() surfacing Referer signals the package is optimized for human-readable chat alerts. This supports prioritizing Telegram/Slack-style notifications over email digests for real-time triage, and informs whether additional channel adapters (Slack, Discord, PagerDuty) are worth building.Referer headers can leak query strings, tokens, or user-identifying paths into third-party chat platforms. This is a decision point for redaction/allow-listing policy before enabling the feature in production, and for documenting it in the internal data-flow inventory.createFromThrowable() accepting RequestContext as an optional parameter and ExceptionListener taking it as a dependency is additive. No migration work, no breaking API changes — a low-risk patch-level rollout decision for the platform team.referer getter/setter on AbstractNotification makes context enrichment a first-class concept. This supports a roadmap item to generalize request metadata (user ID, route, tenant) into the same notification pipeline rather than bolting it on per-channel.Adopt when:
ExceptionListener rather than a full SDK integration.AbstractNotification extension points let you tailor it.Look elsewhere when:
Referer to a third-party chat service requires formal review and redaction guarantees the package does not provide out of the box.For executives: This release is a low-risk, no-cost improvement to how our engineering team gets notified about production errors. Error alerts now include the page a user was on when the failure occurred, which shortens the time between “something broke” and “we know what broke.” It requires no new vendor, no contract, and no migration — it strengthens an asset we already own. The main governance ask is a quick privacy sign-off on what request metadata is allowed into alert messages.
For engineering: Version 3.1.0 is additive and backward compatible. A new RequestContext class extracts the Referer header; createFromThrowable() accepts it optionally; AbstractNotification exposes a referer field with getter/setter; TelegramNotification::__toString() renders it; and ExceptionListener now takes RequestContext as a constructor dependency. Upgrade is a composer bump plus, if you construct ExceptionListener manually, wiring the new dependency. Two engineering actions: (1) confirm the container resolves RequestContext in your service providers, and (2) decide on a redaction policy for Referer before enabling in production, since headers may contain sensitive query parameters. Beyond that, treat the new context plumbing as the template for adding richer request metadata to alerts later.
How can I help you explore Laravel packages today?