Skip to content

TheDragonCode/laravel-telemetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪢 Laravel Telemetry

the dragon code laravel telemetry

Stable Version Total Downloads License

End-to-end telemetry of inter-service communication.

Installation

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"

Basic Usage

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 🙂

How It Works

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.

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