End-to-end telemetry of inter-service communication.
You can install the Laravel Telemetry package via Composer:
composer require dragon-code/laravel-telemetry
You can publish the config file with:
php artisan vendor:publish --tag="telemetry"
Register the middleware:
use DragonCode\LaravelTracker\Http\Middleware\TelemetryMiddleware;
use Illuminate\Foundation\Configuration\Middleware;
->withMiddleware(function (Middleware $middleware): void {
$middleware->prepend(TelemetryMiddleware::class);
})
That's all 🙂
The middleware monitors telemetry 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.