Download the PHP package chocofamilyme/laravel-jaeger without Composer
On this page you can find all versions of the php package chocofamilyme/laravel-jaeger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chocofamilyme/laravel-jaeger
More information about chocofamilyme/laravel-jaeger
Files in chocofamilyme/laravel-jaeger
Package laravel-jaeger
Short Description Jaeger wrapper for Laravel
License MIT
Informations about the package laravel-jaeger
Laravel Jaeger wrapper
Requirements
- PHP ^8.0
- Laravel ^9.0
Installation
You can install the package via composer:
You can publish the config file with:
Basic Usage
1) You need to inject \Chocofamilyme\LaravelJaeger\Jaeger
class by DI
2) Start new span by command
3) do some stuff 4) (optional) stop span
All unstopped spans will be automatically stopped when application is terminated
Controlling the rate of traces
In the configuration file you may modify JAEGER_SAMPLE_RATE variable to configure the rate. The variable accepts values from 0 to 1.
For example, if you set 0.1 then only 10% of all traces is displayed. Set 1 to output them all.
Listeners
There are 4 available listeners, they are disabled by default, you can turn on or write your own implementation for this listeners in config file
- Http - Start new span for every http request
- Console - Start new span for every running artisan console commands
- Query - Start new span for every executed database query
- Job - Start new span for every dispatched queue job
Testing
Changelog
Read changelog here
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-jaeger with dependencies
ext-json Version *
jonahgeorge/jaeger-client-php Version ^1.4
laravel/framework Version ^9.0|^10.0