aws.xray.get_trace_summaries
Example SQL Queries
SELECT * FROMaws.xray.get_trace_summariesWHERE"start_time" = 'VALUE'AND "end_time" = 'VALUE';Description
Retrieves IDs and annotations for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces.
A filter expression can target traced requests that hit specific service nodes or edges, have errors, or come from a known user. For example, the following filter expression targets traces that pass through api.example.com:
service("api.example.com")
This filter expression finds traces that have an annotation named account with the value 12345:
annotation.account = "12345"
For a full list of indexed fields and keywords that you can use in filter expressions, see Using Filter Expressions in the Amazon Web Services X-Ray Developer Guide.
Table Definition
| Column Name | Column Data Type |
|---|---|
| end_time Required Input Column The end of the time frame for which to retrieve traces. | TIMESTAMP_S |
| start_time Required Input Column The start of the time frame for which to retrieve traces. | TIMESTAMP_S |
| filter_expression Input Column Specify a filter expression to retrieve trace summaries for services or requests that meet certain requirements. | VARCHAR |
| sampling Input Column Set to true to get summaries for only a subset of available traces. | BOOLEAN |
| sampling_strategy Input Column A parameter to indicate whether to enable sampling on trace summaries. Input parameters are Name and Value. | STRUCT( |
Show child fields
| |
| time_range_type Input Column A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time). | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| approximate_time The start time of this page of results. | TIMESTAMP_S |
| trace_summaries Trace IDs and annotations for traces that were found in the specified time frame. | STRUCT( |
Show child fields
| |
| traces_processed_count The total number of traces processed, including traces that did not match the specified filter expression. | BIGINT |