A Laravel package for providing log tracing (trace ids and span ids) in your Laravel application.
This package makes it easy to debug your application by providing a way to trace logs for specific api requests or console commands and identify issues.
- Install the package via composer:
composer require vmorozov/laravel-log-traces- Publish vendor files:
php artisan vendor:publish --provider="VMorozov\\LaravelLogTraces\\LogTracesServiceProvider"- Update the package version in
composer.json - Run
composer update vmorozov/laravel-log-tracesThis package provides a middleware that adds trace ids to the logs and console commands.
It adds a trace_id field and span_id field to the log context to identify current trace and span of app execution in the logs.
composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.