Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-log-traces maintained by vmorozov

Description
Laravel library for providing trace ids in logs.
Last update
2026/03/27 12:09 (dev-dependabot/github_actions/dependabot/fetch-metadata-3.0.0)
License
Downloads
225

Comments
comments powered by Disqus

Logs tracing for laravel framework

Latest Version on Packagist Tests Total Downloads

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.

Installation

  1. Install the package via composer:
composer require vmorozov/laravel-log-traces
  1. Publish vendor files:
php artisan vendor:publish --provider="VMorozov\\LaravelLogTraces\\LogTracesServiceProvider"

Upgrading version

  1. Update the package version in composer.json
  2. Run
composer update vmorozov/laravel-log-traces

Usage

This 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.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.