jblab/wide-events-bundle
Symfony bundle for wide events: accumulate rich contextual data throughout a request and dispatch it as a single structured event. Cuts event noise, simplifies logging and observability, and keeps handlers clean. Integrates with Symfony's event dispatcher and DI container.
in-memory, wide event, Monolog, OpenTelemetry correlation). Supports a "start with Monolog, migrate to OTel later" roadmap without a rewrite.Consider it when:
Look elsewhere when:
WideEvent/WideEventContext types may be reusable, but adoption means writing your own glue.For executives: This is a small, low-cost observability component that cuts mean-time-to-resolution and, more importantly, cuts log/telemetry spend — it keeps every slow or failed request and samples away the boring ones. It also enforces PII redaction centrally, reducing the chance of a logging-driven data incident. It is a 0.1.0 Symfony bundle, so the recommendation is a time-boxed pilot on one service, not a platform-wide rollout. Success criteria: measurable reduction in telemetry volume, faster incident triage on the pilot service, and no PII findings.
For engineering: Framework-native instrumentation — an HTTP lifecycle subscriber collects context through the request, a Messenger middleware carries correlation into async work, and emitters are pluggable (in-memory for tests, Monolog for output, OpenTelemetry for trace correlation). Sensitive-field redaction and event size limits are built in. Tail-based sampling decides retention after the fact, so you keep errors and slow requests. Cost of entry is low and the integration surface is narrow; the main risk is pre-1.0 API churn, so isolate it behind our own logging facade. Note: this is Symfony-only — if the target service is Laravel, the pitch becomes "adopt the pattern or fund a thin Laravel adapter," and that's a separate estimate.
How can I help you explore Laravel packages today?