https://github.com/ajaaleixo/laravel-middleware-correlation-id
Laravel Middleware Correlation ID Package
https://github.com/ajaaleixo/laravel-middleware-correlation-id
correlation-id laravel laravel-package tracing
Last synced: 5 months ago
JSON representation
Laravel Middleware Correlation ID Package
- Host: GitHub
- URL: https://github.com/ajaaleixo/laravel-middleware-correlation-id
- Owner: ajaaleixo
- License: mit
- Created: 2018-03-04T14:47:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T07:54:40.000Z (over 3 years ago)
- Last Synced: 2025-09-07T12:51:31.651Z (10 months ago)
- Topics: correlation-id, laravel, laravel-package, tracing
- Language: PHP
- Size: 61.5 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.codacy.com/app/ajaaleixo/laravel-middleware-correlation-id?utm_source=github.com&utm_medium=referral&utm_content=ajaaleixo/laravel-middleware-correlation-id&utm_campaign=Badge_Grade)
[](https://circleci.com/gh/ajaaleixo/laravel-middleware-correlation-id/tree/master)
[](https://packagist.org/packages/ajaaleixo/laravel-middleware-correlation-id)
# Laravel Correlation ID Middleware
Supports L5.5+
This package offers you a way of adding a correlation id output on Laravel Logger based on a sent Header.
Inspired by [this repo](https://github.com/proemergotech/correlate-php-laravel) it has:
- all the functionality to set macros on a Request and Push a Monolog Processor
- adds a configuration file to override settings
- adds proper tests
- enables usage for recent Laravel versions (5.5+)
## Install
### Add Service provider
Open your config/app.php and insert the following in providers key:
```
Ajaaleixo\Middleware\CorrelationId\CorrelationIdServiceProvider::class,
```
### Run Publish command
```
php artisan vendor:publish --provider="Ajaaleixo\Middleware\CorrelationId\CorrelationIdServiceProvider"
```
### Edit your settings
Open ```config/correlationid.php```.