getMetricsTracesQuery method
Recent spans for your org over a time range
Answers {count, spans}, newest first, filtered on each span's START time. start and end are nanosecond bounds where 0 — which is what an absent, empty or unparseable value becomes — means UNBOUNDED, so a malformed bound widens the listing instead of failing it. limit defaults to 100 when absent or non-positive. It lists SPANS, not traces: several spans of one trace each count separately and each take a slot against limit. Assembling one trace is /v1/metrics/traces/trace. The tenant is the gateway-minted X-Org-Id header, falling back to the deployment brand and then default.
Implementation
Future<void> getMetricsTracesQuery() async {
final response = await getMetricsTracesQueryWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}