Skip to content

TheDragonCode/laravel-request-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪢 Laravel Request Tracker

the dragon code laravel request tracker

Stable Version Total Downloads License

Laravel adapter for dragon-code/request-tracker to trace inter-service request chains.

Installation

You can install the Laravel Request Tracker package via Composer:

composer require dragon-code/laravel-request-tracker

You can publish the config file with:

php artisan vendor:publish --tag="tracker"

Basic Usage

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 🙂

How It Works

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.

License

This package is licensed under the MIT License.

About

End-to-end telemetry of inter-service communication

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

Languages