Start Trace Retrieval
xray_start_trace_retrieval | R Documentation |
Initiates a trace retrieval process using the specified time range and for the give trace IDs on Transaction Search generated by the CloudWatch log group¶
Description¶
Initiates a trace retrieval process using the specified time range and for the give trace IDs on Transaction Search generated by the CloudWatch log group. For more information, see Transaction Search.
API returns a RetrievalToken
, which can be used with
list_retrieved_traces
or get_retrieved_traces_graph
to fetch
results. Retrievals will time out after 60 minutes. To execute long time
ranges, consider segmenting into multiple retrievals.
If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account to retrieve data from a linked source account, as long as both accounts have transaction search enabled.
For retrieving data from X-Ray directly as opposed to the
Transaction-Search Log group, see batch_get_traces
.
Usage¶
Arguments¶
TraceIds
[required] Specify the trace IDs of the traces to be retrieved.
StartTime
[required] The start of the time range to retrieve traces. The range is inclusive, so the specified start time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
EndTime
[required] The end of the time range to retrieve traces. The range is inclusive, so the specified end time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
Value¶
A list with the following syntax: