palzin-apm/palzin-laravel

Real-Time monitoring Laravel package using Palzin Monitor (APM)

24.8.1 2024-08-05 12:28 UTC

This package is auto-updated.

Last update: 2024-11-06 12:50:09 UTC


README

Latest Stable Version Total Downloads License

Palzin Monitor offers real-time performance monitoring capabilities that allow you to effectively monitor and analyze the performance of your applications. With Palzin Monitor, you can capture and track all requests without the need for any code modifications. This feature enables you to gain valuable insights into the impact of your methods, database statements, and external requests on the overall user experience.

Requirements

  • PHP >= 7.2.0
  • Laravel >= 5.5

Install

To install the latest version of Palzin Monitor (APM) use below command:

composer require palzin-apm/palzin-laravel

For Lumen

If your application is based on Lumen you need to manually register the PalzinServiceProvider:

$app->register(\Palzin\Laravel\PalzinServiceProvider::class);

Configure the Ingestion Key

First put the Ingestion Key in your environment file:

PALZIN_APM_INGESTION_KEY=[your ingestion key]

You can obtain an PALZIN_APM_INGESTION_KEY creating a new project in your Palzin APM account.

Attach the Middleware

To monitor web requests you can attach the WebRequestMonitoring 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' => [
        ...,
        \Palzin\Laravel\Middleware\WebRequestMonitoring::class,
    ],

    'api' => [
        ...,
        \Palzin\Laravel\Middleware\WebRequestMonitoring::class,
    ]

Test everything is working

Run the command below:

php artisan palzin:test

Go to https://www.palzin.app/ to explore your data.

Official documentation

Go to the official documentation

LICENSE

This package is licensed under the MIT license.