Laravel Horizon and queue services PHP

Laravel Horizon supercharges the Laravel powered Redis queues.

Integrating Blackfire with Laravel queue services lets you monitor your consumers and track individual job processing:

Note

You must, first, enable monitoring on your environment.

Requirements

  • PHP >= 7.3
  • illuminate/queue >= 8.0
  • illuminate/support >= 8.0

Installation

Add Blackfire PHP SDK as a dependency in your project (1.27+ version).

Monitoring

The Blackfire PHP SDK provides a Laravel Observable Queue Service Provider that eases collecting and measuring the processing of your jobs.

All Laravel’s service providers are registered in the config/app.php configuration file:

1
2
3
4
5
'providers' => [
    // Other Service Providers

    Blackfire\Bridge\Laravel\ObservableJobProvider::class,
],

A transaction name is generated for every processed message given the class name of the job. It allows monitoring of consumers given message types.

Transactions are visible on the Monitoring dashboard page, filtering on CLI requests.