getMetricsTracesQueryWithHttpInfo method

Future<Response> getMetricsTracesQueryWithHttpInfo()

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.

Note: This method returns the HTTP Response.

Implementation

Future<Response> getMetricsTracesQueryWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/metrics/traces/query';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}