Returns the top spans aggregated across traces, sorted by impact or other metrics. Each span includes wall time, P96, call count, percentage of traces containing the span, and impact score. Supports filtering by context, transaction, host, framework, runtime, HTTP method/status, and service layer.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the Upsun project
[a-z0-9]+"abc123def456"
The environment identifier
.+"main"
Start timestamp for the time range (Unix timestamp in seconds)
1704067200
End timestamp for the time range (Unix timestamp in seconds)
1704153600
Granularity of data points in seconds. Auto-calculated if omitted.
10
Sort field for top spans.
percentage, p_96, count, wt, exec-time, impact Filter by execution contexts. Defaults to ["web"] with additive mode when neither contexts nor contexts_mode is specified.
web, cli Filter mode for contexts parameter. "1" (additive, default) includes only specified contexts. "-1" (subtractive) excludes specified contexts and includes all others. When neither contexts nor contexts_mode is specified, defaults to "1" (additive) with contexts=["web"].
1, -1 "1"
Filter by transaction names
Filter mode for transactions parameter. "1" (additive) includes only specified transactions. "-1" (subtractive, default) excludes specified transactions and includes all others.
1, -1 "1"
Filter by wall-time distribution slots
Filter mode for wt_slots parameter. "1" (additive) includes only specified wt_slots. "-1" (subtractive, default) excludes specified wt_slots and includes all others.
1, -1 "1"
Filter by peak memory usage distribution slots
Filter mode for pmu_slots parameter. "1" (additive) includes only specified pmu_slots. "-1" (subtractive, default) excludes specified pmu_slots and includes all others.
1, -1 "1"
Filter by HTTP status codes or ranges (e.g., 200, 5xx)
Filter mode for http_status_codes parameter. "1" (additive) includes only specified http_status_codes. "-1" (subtractive, default) excludes specified http_status_codes and includes all others.
1, -1 "1"
Filter by HTTP hosts
Filter mode for http_hosts parameter. "1" (additive) includes only specified http_hosts. "-1" (subtractive, default) excludes specified http_hosts and includes all others.
1, -1 "1"
Filter by server hosts
Filter mode for hosts parameter. "1" (additive) includes only specified hosts. "-1" (subtractive, default) excludes specified hosts and includes all others.
1, -1 "1"
Filter by frameworks. Can be specified multiple times for multiple values (e.g., ?frameworks[]=symfony&frameworks[]=laravel). Use frameworks_mode to control inclusion/exclusion behavior.
Filter mode for frameworks parameter. "1" (additive) includes only specified frameworks. "-1" (subtractive, default) excludes specified frameworks and includes all others.
1, -1 "1"
Filter by programming languages. Can be specified multiple times for multiple values (e.g., ?languages[]=php&languages[]=python). Use languages_mode to control inclusion/exclusion behavior.
Filter mode for languages parameter. "1" (additive) includes only specified languages. "-1" (subtractive, default) excludes specified languages and includes all others.
1, -1 "1"
Filter by HTTP methods. Can be specified multiple times for multiple values (e.g., ?methods[]=get&methods[]=post). Use methods_mode to control inclusion/exclusion behavior.
Filter mode for methods parameter. "1" (additive) includes only specified methods. "-1" (subtractive, default) excludes specified methods and includes all others.
1, -1 "1"
Filter by runtimes. Can be specified multiple times for multiple values (e.g., ?runtimes[]=PHP 8.4.17 (fpm-fcgi)). Use runtimes_mode to control inclusion/exclusion behavior.
Filter mode for runtimes parameter. "1" (additive) includes only specified runtimes. "-1" (subtractive, default) excludes specified runtimes and includes all others.
1, -1 "1"
Filter by operating systems. Can be specified multiple times for multiple values (e.g., ?oss[]=Linux&oss[]=Darwin). Use oss_mode to control inclusion/exclusion behavior.
Filter mode for oss parameter. "1" (additive) includes only specified operating systems. "-1" (subtractive, default) excludes specified operating systems and includes all others.
1, -1 "1"
Cost distribution dimension for server load distribution.
wt, pmu Top spans retrieved successfully
Data granularity in seconds
5
Query start timestamp
1704067200
Query end timestamp
1704153600
Blackfire Agent UUID
"a38f69ca-3b56-4ea6-beac-272b2568164a"
Project identifier
"abc123def456"
Environment identifier
"main"
Branch machine name
"main-bvxea6i"
Applied sort field for top spans
percentage, p_96, count, wt, exec-time, impact Top spans aggregated data
Available filter values for refining queries
Applied context filter values
Context filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied transaction filter values
Transaction filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied wall-time slot filter values
Wall-time slot filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied peak memory slot filter values
Peak memory slot filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied HTTP status code filter values
HTTP status code filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied HTTP host filter values
HTTP host filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied host filter values
Host filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied framework filter values
Framework filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied language filter values
Language filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied method filter values
Method filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied runtime filter values
Runtime filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied OS filter values
OS filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied distribution cost dimension (wt=wall time, pmu=peak memory usage)
wt, pmu