vmorozov/laravel-log-traces

Laravel library for providing trace ids in logs.

Maintainers

Package info

github.com/freezer278/laravel-log-traces

Homepage

pkg:composer/vmorozov/laravel-log-traces

Fund package maintenance!

vmorozov

Statistics

Installs: 125

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.3.1 2026-03-11 07:34 UTC

This package is auto-updated.

Last update: 2026-03-11 07:34:25 UTC


README

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.