ultimate-apm/ultimate-laravel

23.03.22 2023-03-22 07:21 UTC

This package is auto-updated.

Last update: 2024-04-22 09:28:30 UTC


README

Latest Stable Version Total Downloads License

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.