Skip to main content

retrieved_traces

Creates, updates, deletes, gets or lists a retrieved_traces resource.

Overview

Nameretrieved_traces
TypeResource
Idaws.xray.retrieved_traces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringSpecify the pagination token returned by a previous request to retrieve the next page of indexes.
retrieval_statusstringStatus of the retrieval. (SCHEDULED, RUNNING, COMPLETE, FAILED, CANCELLED, TIMEOUT)
trace_formatstringFormat of the requested traces. (XRAY, OTEL)
tracesarrayFull traces for the specified requests.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_retrieved_tracesselectregionRetrieves a list of traces for a given RetrievalToken from the CloudWatch log group generated by Transaction Search. For information on what each trace returns, see BatchGetTraces. This API does not initiate a retrieval process. To start a trace retrieval, use StartTraceRetrieval, which generates the required RetrievalToken. When the RetrievalStatus is not COMPLETE, the API will return an empty response. Retry the request once the retrieval has completed to access the full list of traces. For cross-account observability, this API can retrieve traces from linked accounts when CloudWatch log is set as the destination across relevant accounts. For more details, see CloudWatch cross-account observability. For retrieving data from X-Ray directly as opposed to the Transaction Search generated log group, see BatchGetTraces.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a list of traces for a given RetrievalToken from the CloudWatch log group generated by Transaction Search. For information on what each trace returns, see BatchGetTraces. This API does not initiate a retrieval process. To start a trace retrieval, use StartTraceRetrieval, which generates the required RetrievalToken. When the RetrievalStatus is not COMPLETE, the API will return an empty response. Retry the request once the retrieval has completed to access the full list of traces. For cross-account observability, this API can retrieve traces from linked accounts when CloudWatch log is set as the destination across relevant accounts. For more details, see CloudWatch cross-account observability. For retrieving data from X-Ray directly as opposed to the Transaction Search generated log group, see BatchGetTraces.

SELECT
next_token,
retrieval_status,
trace_format,
traces
FROM aws.xray.retrieved_traces
WHERE region = '{{ region }}' -- required
;