correlate-php-monolog
Overview
It's very difficult to track a request accross the system when we are working with microservices. We came out a solution for that. We generate a unique version 4 uuid for every request and every service passes this id via request header to other services. We call this correlation ID., (*1)
Packages
Installation
You should not use this directly., (*2)
By the way if you want to use it directly, you can install it via composer., (*3)
$ composer require proemergotech/correlate-php-monolog
Usage
Generate a correlation id:, (*4)
$processor = new \ProEmergotech\Correlate\Monolog\CorrelateProcessor('x_correlation_id', $correlationId);
$monolog->pushProcessor($processor);
Contributing
See CONTRIBUTING.md
file., (*5)
Credits
This package developed by Soma Szélpål at Pro Emergotech Ltd.., (*6)
License
This project is released under the MIT License., (*7)