New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

vmorozov/laravel-log-traces

Laravel library for providing trace ids in logs.
1,071
Install
composer require vmorozov/laravel-log-traces
Latest Version:v1.3.2
PHP:^8.1
Laravel:9 – 13
License:MIT
Last Updated:Jun 19, 2026
Links: GitHub  ·  Packagist
Maintainer: vmorozov

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.

Related Packages

vmorozov/laravel-prometheus

Prometheus client for laravel framework. Includes some of default metrics for an...

1,515 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

660,512,042 9,702
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

531,591,559 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

450,320,528 608

Version History

Version Released PHP Laravel License
v1.3.2 ^8.1 >=9.0 MIT
v1.3.1 ^8.1 >=9.0 MIT
v1.3.0 ^8.1 >=9.0 MIT
v1.2.1 ^8.1 >=9.0 MIT
v1.2.0 ^8.1 >=9.0 MIT