Laravel adapter for dragon-code/request-tracker to trace inter-service request chains.
You can install the Laravel Request Tracker package via Composer:
composer require dragon-code/laravel-request-trackerYou can publish the config file with:
php artisan vendor:publish --tag="tracker"Register the middleware:
use DragonCode\LaravelRequestTracker\Http\Middleware\RequestTrackerMiddleware;
use Illuminate\Foundation\Configuration\Middleware;
->withMiddleware(function (Middleware $middleware): void {
$middleware->prepend(RequestTrackerMiddleware::class);
})That's all 🙂
The middleware monitors request tracker headers in incoming requests and, when present, automatically injects them into the application context.
This makes it possible to build chains of inter-service requests with filtering by an identifier.
This package is licensed under the MIT License.