Laravel Artisan is the CLI command included with Laravel.
Integrating Blackfire with Laravel Artisan lets you monitor all your CLI commands:
You must, first, enable monitoring on your environment.
Add Blackfire PHP SDK as a dependency in your project (1.27+ version).
The Blackfire PHP SDK provides a Laravel Observable Artisan Service Provider that eases collecting and measuring the processing of your CLI commands.
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\ObservableCommandProvider::class, ],
A transaction name is generated for every processed message given the Artisan command signature.
Transactions are visible on the Monitoring dashboard page, filtering on