Git information
When you're using Git to manage your code, and the git history is available from the server you're running your application on, Flare will automatically collect:
- The commit hash
- The commit message
- The current branch
- The git repository remote URL
In the past this information was collected by calling the git command directly from PHP which could lead to performance issues on some systems. Next to the default collected data the legacy method also collected:
- The latest tag
- Whether the repository is dirty (uncommitted changes)
It can still be enabled by adding the following to your config.php:
use Spatie\FlareClient\Enums\CollectType;
'collects' => FlareConfig::defaultCollects(
extra: [CollectType::GitInfo => ['use_process' => true]],
),
It is possible to disable this behaviour by ignoring the GitInfo collect in config.php:
'collects' => FlareConfig::defaultCollects(
ignore: [CollectType::GitInfo],
),