Download the PHP package nadi-pro/nadi-php without Composer
On this page you can find all versions of the php package nadi-pro/nadi-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nadi-php
Nadi PHP Client
Nadi is a simple issue tracker for monitoring your application crashes. This package developed for PHP.
Installation
Adding New Metric
You can add a new metric as you see fit to your application / framework.
Do take note, all metrics will be converted to associative array.
In order to create your own metrics, you need to extends the class Nadi\Metric\Base
and implement your metrics details in metrics()
method which always return an array. You may need to define as a dot notation in your metric.
However, Nadi will convert to the associative array.
Following is an example for capture Http request for Laravel framework.
Once you have declared your metric, you can use in your application:
If you are adding from Laravel framework, you can simply just add in config/nadi.php
:
Class Diagram
Sampling
Following are the sampling strategy provided by default:
- Base Sampling
- Fix Rate Sampling
- Interval Sampling
- Peak Load Sampling
- Dynamic Rate Sampling
Usage
The Sample Config can be construct as following:
Then based on available sampling strategy, contruct the sampling object:
You can use directly the sampling:
Or you require Sampling Manager:
Use Sampling Manager if you rely on dynamic use of sampling stategy.
Create Your Own Sample Strategy
To create your own sampling strategy:
All versions of nadi-php with dependencies
guzzlehttp/guzzle Version ^6.3.1|^7.0.1
hisorange/browser-detect Version ^4.5 | ^5.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
ramsey/uuid Version ^3.0 | ^4.7