ultimate-apm / ultimate-laravel
Monitoring package
23.03.22
2023-03-22 07:21 UTC
Requires
- php: >=7.2|^8.0
- guzzlehttp/guzzle: ^5.0 || ^6.0 || ^7.0
- illuminate/console: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/contracts: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/support: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0
- ultimate-apm/ultimate-php: ^23.03.08
- vlucas/phpdotenv: ^2.0 || ^3.0 || ^4.0 || ^5.0
Requires (Dev)
- nunomaduro/collision: ^6.1
- orchestra/testbench: ^6.3|^7.0|^8.0
README
Simple code execution monitoring and bug reporting for Laravel developers.
Requirements
- PHP >= 7.2.0
- Laravel >= 5.5
Install
Install the latest version of our package by:
composer require ultimate-apm/ultimate-laravel
For Lumen
If your application is based on Lumen you need to manually register the UltimateServiceProvider
:
$app->register(\Ultimate\Laravel\UltimateServiceProvider::class);
Configure the Ingestion Key
First put the Ingestion Key in your environment file:
ULTIMATE_INGESTION_KEY=[your ingestion key]
You can obtain an ULTIMATE_INGESTION_KEY
creating a new project in your Palzin APM account.
Attach the Middleware
To monitor web requests you can attach the WebMonitoringMiddleware
in your http kernel or use in one or more route groups based on your personal needs.
/** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ ..., \Ultimate\Laravel\Middleware\WebRequestMonitoring::class, ], 'api' => [ ..., \Ultimate\Laravel\Middleware\WebRequestMonitoring::class, ]
Test everything is working
Run the command below:
php artisan ultimate:test
Go to https://www.palzin.app/ to explore your data.
LICENSE
This package is licensed under the MIT license.