Laravel integration for tail.dev


Keywords
logging, exceptions, monitoring, laravel, apm, tail.dev
License
MIT

Documentation

Laravel Integration for tail.dev

PHP tests

The Laravel PHP integration for tail.dev provides zero-configuration application performance monitoring (APM), exceptions, and logging.

Docs

See full documentation at tail.dev/documentation/laravel/get-started

Quickstart

Install the taildev/laravel package using Composer

composer require taildev/laravel

Set your auth token in the .env file

TAIL_AGENT_TOKEN=your-auth-token

By default Laravel automatically registers service providers. If you have this turned off be sure to add the tail.dev service provider to your providers array in config/app.php

'providers' => [
    // ...,
    Tail\Laravel\TailServiceProvider::class,
]

APM tracing will work out of the box!

Logs

To setup logs, add a new channel to config/logging.php

'channels' => [
    'tail' => [
        'driver' => 'monolog',
        'handler' => Tail\Logs\TailMonologHandler::class,
    ],
],

Next, set LOG_CHANNEL=tail in your .env file.

Logs will now be forwarded to tail.dev

More

For full documentation see tail.dev/documentation/laravel/get-started