dragon-code / laravel-telemetry
End-to-end telemetry of inter-service communication
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/dragon-code/laravel-telemetry
Requires
- php: ^8.2
- dragon-code/telemetry: ^1.0
- illuminate/http: ^11.0 || ^12.0
- illuminate/support: ^11.0 || ^12.0
Requires (Dev)
- dragon-code/codestyler: ^6.3
- orchestra/testbench: ^9.0 || ^10.0
- pestphp/pest: ^3.0 || ^4.0
- pestphp/pest-plugin-type-coverage: ^3.0 || ^4.0
- symfony/var-dumper: ^6.0 || ^7.3
README
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.