Flare by Spatie
    • Error Tracking
    • Performance Monitoring
  • Pricing
  • Docs
  • Insights
  • Changelog
  • Back to Flare
  • Sign in
  • Try Flare for free
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Docs
  • Insights
  • Changelog
    • Back to Flare
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript
  • General
  • Welcome to Flare
  • Getting started
  • Our MCP server
  • Using the API
  • Errors
  • Working with errors
  • Searching errors
  • Sharing errors
  • Error grouping
  • Spike protection
  • AI powered solutions
  • Monitoring
  • How it works
  • Dashboard
  • Summary view
  • Aggregate view
  • Working with traces
  • Integrations
  • GitHub
  • Jira
  • GitLab
  • Linear
  • Notifications
  • Configuring notifications
  • Mail
  • Slack
  • Telegram
  • SMS
  • Discord
  • Microsoft Teams
  • Webhooks

Working with traces

A trace shows you the details of a single request as it moves through your app. They give you insight into individual requests, unlike aggregate data that is based on all requests. But traces don’t always show the full picture as performance issues often come from multiple areas, not just one request.

screenshot

Focus too much on traces, you might miss bigger problems affecting performance.

However, there are some situations where looking at individual traces can be helpful:

  • Understanding bottlenecks by being able to see where your code is spending most of its time.
  • Revealing specific queries that take longer than expected, pointing to underlying issues with that query.
  • Requests with many short-running queries may have n+1 queries that can be optimized.

Some of this information can also be found using the aggregated data in the "Breakdown" or "Appears in" sections of your entry points, Queries, External HTTP calls and Views.

Types of spans

The spans you come across in the trace timeline may depend on the type of data you are looking at. These are the ones to keep an eye out for:

  • App, Registering, Boot, Routing, Termination
  • Request, Job, Command
  • Queries
  • Transactions
  • Queueing
  • View

Each span is mapped on a timeline starting from 0ms. Purple bars indicate the full lifecycle of the trace, while dark grey bars show the span's processing time.

Selecting a span shows more information about it, including:

  • What type it is
  • Duration and start/end times
  • Any attributes on the span (depending on the type)
  • Any events that were fired during the span's lifecycle
  • Information about the server/service that processed the trace/span

(Multiple) Jobs

In some cases, the trace timeline may show multiple jobs. This could mean that one job queued another, or that a command executed a job and Flare continued tracing until the final job in the chain was completed.

screenshot

In this example, we’re inspecting the job App\Jobs\FetchWeatherDataJob. This job was scheduled by a command that triggered four separate jobs. All four appear in the trace because they were executed within the same span, and Flare displays them together. The original job being inspected is highlighted to make it stand out from the others.

screenshot

Types of events

Events are actions that happened during a span, and can be triggered automatically by your application, or something custom you defined to trigger.

Events may include custom information, cache hits/misses, or exceptions. Exceptions are marked with a red exclamation on the span timeline.

We collect these types of events:

  • Exceptions: triggered when an error occurs (ex., a request returning a 500 status code).
  • Cache: captures cache operations, including set, hit, miss, and forget events.
  • Logs: records log entries from your application, with optional priority levels.
  • Glows: Laravel-specific log entries, functionally similar to standard logs.

screenshot

Aggregate view GitHub
  • On this page
  • Types of spans
  • Types of events

Catch errors and fix slowdowns with Flare, the full-stack application monitoring platform for Laravel, PHP & JavaScript.

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