Flare by Spatie
  • Features
  • Pricing
  • Docs
  • Blog
  • LOG IN
  • START TRACKING
  • Home
  • Features
  • Pricing
  • Docs
  • Blog
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript
  • General
  • Introduction
  • Installation
  • Censoring collected data
  • Ignoring collected data
  • Laravel Octane
  • Errors
  • Adding custom context
  • Customising error grouping
  • Handling errors
  • Linking to errors
  • Reporting errors
  • Sending logs to Flare
  • Performance
  • Introduction
  • Sampling
  • Limits
  • Modify spans and span events
  • Data Collection
  • Application info
  • Cache events
  • Console commands
  • Customise error report
  • Database transactions
  • Dumps
  • Errors when tracing
  • Exception context
  • External http requests
  • Filesystem operations
  • Git information
  • Glows
  • Identifying users
  • Jobs and queues
  • Laravel context
  • Livewire
  • Logs
  • Queries
  • Redis commands
  • Requests
  • Server info
  • Solutions
  • Spans
  • Stacktrace arguments
  • Views
  • Older Packages
  • Laravel Flare V1
  • Ignition

Application info

By default, Flare is adding information about your current running application:

  • The locale
  • If the config has been cached
  • Whether the debug mode is on
  • The version of the Laravel framework
  • The current environment in which your application is running
  • The application name

This behaviour can be disabled by ignoring the LaravelInfo collect in config.php:

use Spatie\LaravelFlare\Enums\LaravelCollectType;

'collects' => FlareConfig::defaultCollects(
    ignore: [LaravelCollectType::LaravelInfo],
),

Please note that the application name and stage will always be sent to Flare.

Application Version

You can configure Flare to add a version number to all sent exceptions and traces:

use Spatie\LaravelFlare\Facades\Flare;

Flare::withApplicationVersion("1.0");

An excellent place to put this code is within your AppServiceProvider boot method.

It is also possible to use a closure to set the version number:

Flare::withApplicationVersion(function() {
   return '1.0' ; // return your version number
});
Modify spans and span events Cache events
  • On this page
  • Application Version

Monitor your web apps and sites from errors to slowdowns with Flare, the easiest application monitoring platform for Laravel, PHP & Javascript.

  • Platform
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Support
  • Resources
  • Blog
  • Changelog
  • Documentation
  • Affiliate program
  • Service status
  • Terms of use
  • DPA
  • Privacy & Cookie Policy
Flare