Skip to content

Repository files navigation

Laravel Trace

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (main) Total Downloads

Installation

You can install the package via Composer:

composer require adilazhari/laravel-trace

You may publish all of the package's resources at once:

php artisan vendor:publish --tag="laravel-trace"

Or, you may publish each resource individually:

Publishing the Configuration File

php artisan vendor:publish --tag="laravel-trace-config"

Publishing and Running the Migrations

php artisan vendor:publish --tag="laravel-trace-migrations"
php artisan migrate

Publishing the Views

php artisan vendor:publish --tag="laravel-trace-views"

Publishing the Translations

php artisan vendor:publish --tag="laravel-trace-lang"

Publishing the Public Assets

php artisan vendor:publish --tag="laravel-trace-assets"

Usage

Database storage

By default, traces and spans are held in memory for the lifetime of the request. To persist them, publish and run the migrations (above), then set the storage driver to database:

// config/laravel-trace.php
'storage' => [
    'driver' => 'database',

    'database' => [
        'connection' => null, // defaults to your app's default connection
        'swallow_exceptions' => true,
    ],
],

A storage write failure is logged and swallowed by default, so a database outage or a missing table never breaks the host application - set swallow_exceptions to false while debugging your setup to let it throw instead.

Changelog

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

Contributing

Thank you for considering contributing to Laravel Trace! Please review our contributing guide to get started.

Security Vulnerabilities

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

Credits

License

Laravel Trace is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages