Configuration
Customize the monitoring strategy in your Laravel application.
If you want full control of the package behaviour publish the configuration file:
This comand will create the config/inspector.php
file.
Environment Variables
You can use the following environment variables to determine how Inspector will collect information for your application:
Master Switch
If desired, you may disable data transfer setting to false
the enable
configuration option:
Ignore transactions (urls, commands, jobs)
Not all transactions need to be monitored in your application. Think about the artisan commands used for application maintainance or deployment, like: migrate:xxx
, queue:xxx
, horizon:xxx
, or other parts of your app that is built for internal use and aren't reachable by users.
You have many options to keep off the noise, and only monitor what metter.
To add these customizations you need to publish the inspector.php
configuration file if you haven't already: php artisan vendor:publish --provider="Inspector\Laravel\InspectorServiceProvider"
Ignore URLs
It could be needed to turn off monitoring based on url. Think about paths like /nova
, /telescope
, or other parts of your app that don't affect the user experience.
You can also use the wildcard character *
to exclude all sub-paths.
Ignore Commands
You can ignore artisan commands adding the command signature to the ignore_commands
parameter in the config/inspector.php
configuration file.
Ignore Jobs
You can also ignore background jobs adding classes to the ignore_jobs
property:
Last updated