ssipos90 / correlate
Add correlation ID to requests to use in micro services logs aggregating.
v0.1.3
2017-04-05 13:39 UTC
Requires
- illuminate/http: ^5.4
- monolog/monolog: ^1.22
- webpatser/laravel-uuid: ^2.0
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is not auto-updated.
Last update: 2024-12-22 04:27:26 UTC
README
Installation
Via composer package management:
$ composer require ssipos90/correlate
Usage
Not tested on Laravel, only Lumen.
Either
- register the service provider:
- Laravel: register the provider in your
config/app.php
file:
Ssipos\Correlate\CorrelateServiceProvider::class,
- Lumen: add this in your
bootstrap/app.php
file:
$app->register(Ssipos\Correlate\CorrelateServiceProvider::class);
- Laravel: register the provider in your
- add the middleware to whatever routes you want or globally:
- Laravel: add the middleware in your
app/Http/Kernel.php
file; - Lumen: add the middleware in your
bootstrap/app.php
file.
Ssipos\Correlate\Correlate::class
- Laravel: add the middleware in your
TODO
- Add guzzle support for adding the header on forwarding requests