upscale/swoole-blackfire
Integrates Blackfire profiling with Swoole workers, enabling per-request profiling in long-running Laravel Octane applications. Helps Blackfire traces work correctly across persistent PHP workers instead of only the initial request.
Adopt (or trial) when:
Look elsewhere when:
For executives: As we modernize Laravel onto Octane/Swoole for throughput, our existing profiler stops seeing individual requests — we would be flying blind on performance exactly when the runtime changes most. This package is a small, permissively licensed (Apache-2.0) bridge that restores Blackfire profiling in that environment without custom engineering. It is low-cost to adopt and easy to remove. The trade-off is maturity: a small community and no dependents, so we treat it as a thin, pinned, replaceable dependency — not a strategic commitment — and confine it to non-production or gated production use until proven.
For engineering: It solves one specific problem — Blackfire's probe assumes the PHP-FPM request lifecycle, which Swoole's persistent workers and coroutines break. Rather than hand-rolling instrumentation, this wires the two together so you get per-request profiles in Octane/Swoole. Use it in staging and pre-prod for regression baselines and incident triage; pin the version, wrap it behind our observability configuration, and be prepared to fork or replace it if upstream goes quiet. It is not an APM replacement — it is the compatibility shim that keeps our existing profiler useful.
How can I help you explore Laravel packages today?