Aggregations
Flare aggregates spans by type to provide performance insights. Each aggregation groups spans by specific attributes, so you can track trends like "how is this query performing over time" or "which routes are slowest".
Before grouping, Flare replaces the variable parts of names, keys and paths (such as UUIDs, email addresses, dates and numbers) with *, so /api/orders/1234 and /api/orders/5678 end up in the same group.
Aggregated Span Types
Routes (php_request)
| Attribute | Required |
|---|---|
http.request.method |
yes |
http.route |
no |
flare.entry_point.handler.name |
no |
Queries (php_query)
| Attribute | Required |
|---|---|
db.query.text |
yes, unless db.query.summary or db.operation.name with db.collection.name is present |
db.query.summary |
no |
db.system.name |
no |
laravel.db.connection |
no |
Only SQL queries are grouped. Without a query text, Flare groups on db.query.summary, or else on db.operation.name and db.collection.name together.
Database Commands (redis_command)
| Attribute | Required |
|---|---|
db.system.name |
yes, must be redis |
db.operation.name |
yes, unless db.query.text starts with the command |
db.query.parameters |
no |
db.query.text |
no |
Redis commands get their own aggregation instead of a query row. Flare groups them on the command and the key pattern, for example GET user.*.permissions. The key is the first argument, taken from db.query.parameters or from the second word of db.query.text. Connection, transaction, pub/sub and blocking commands are stored but not grouped.
Jobs (laravel_job, job)
| Attribute | Required |
|---|---|
laravel.job.name |
yes, for laravel_job |
laravel.job.class |
no |
messaging.destination.template |
no |
messaging.destination.name |
no |
messaging.consumer.group.name |
no |
messaging.destination.temporary |
no |
A job span is named after messaging.destination.template, or else messaging.destination.name, or else the span name. Its class comes from messaging.consumer.group.name. A span with messaging.destination.temporary set to true is stored but not grouped, because a temporary queue name is unique per process.
Commands (php_command)
| Attribute | Required |
|---|---|
process.command |
yes |
External HTTP Requests (php_http_request)
| Attribute | Required |
|---|---|
http.request.method |
yes |
url.full |
no |
server.address |
only without url.full |
url.path |
no |
url.template |
no |
Flare reads the host and the path out of url.full. Without it, or when it has no host, Flare uses server.address and url.path. Spans without a host are not grouped. When the span has url.template (such as /api/orders/{id}), Flare uses it as the path. browser_fetch and browser_xhr spans use this aggregation too.
Views (php_view)
| Attribute | Required |
|---|---|
view.name |
yes |
view.type |
no |
Livewire Components (laravel_livewire_component)
| Attribute | Required |
|---|---|
livewire.component.name |
yes |
livewire.component.class |
no |
view.file |
no |
A component can be aggregated when it has livewire.component.name and either livewire.component.class or livewire.component.single_file_component is true with a view.file present.
Operations (operation)
| Attribute | Required |
|---|---|
| Span name | yes |
code.module.name |
no |
Operations group spans of the type operation, such as a background task. Flare keys them on the span name and, when present, on code.module.name.
Browser Pages
Built from the browser span types. See Aggregations in the JavaScript protocol docs.
Aggregation Statistics
Flare calculates the following statistics for each aggregation. Child statistics are only available for clients that send complete units of work, see Lifecycle.
| Statistic | Description |
|---|---|
queries / query_time |
SQL query count and total duration |
redis_commands / redis_command_time |
Redis command count and total duration |
db_commands / db_command_time |
Other database command count and total duration |
views / view_time |
View render count and total duration |
external_http_requests / external_http_request_time |
External HTTP call count and total duration |
cache.hits / cache.misses / cache.sets / cache.forgets |
Cache operation counts |
exceptions |
Exception count |
boot_time / terminate_time |
Application lifecycle durations |
On this page