Table of Contents
A low-level client representing AWS X-Ray:
client = session.create_client('xray')
These are the available methods:
Retrieves a list of traces specified by ID. Each trace is a collection of segment documents that originates from a single request. Use GetTraceSummaries to get a list of trace IDs.
See also: AWS API Documentation
Request Syntax
response = client.batch_get_traces(
TraceIds=[
'string',
],
NextToken='string'
)
[REQUIRED]
Specify the trace IDs of requests for which to retrieve segments.
dict
Response Syntax
{
'Traces': [
{
'Id': 'string',
'Duration': 123.0,
'Segments': [
{
'Id': 'string',
'Document': 'string'
},
]
},
],
'UnprocessedTraceIds': [
'string',
],
'NextToken': 'string'
}
Response Structure
(dict) --
Traces (list) --
Full traces for the specified requests.
(dict) --
A collection of segment documents with matching trace IDs.
Id (string) --
The unique identifier for the request that generated the trace's segments and subsegments.
Duration (float) --
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
Segments (list) --
Segment documents for the segments and subsegments that comprise the trace.
(dict) --
A segment from a trace that has been ingested by the X-Ray service. The segment can be compiled from documents uploaded with PutTraceSegments , or an inferred segment for a downstream service, generated from a subsegment sent by the service that called it.
For the full segment document schema, see AWS X-Ray Segment Documents in the AWS X-Ray Developer Guide .
Id (string) --
The segment's ID.
Document (string) --
The segment document.
UnprocessedTraceIds (list) --
Trace IDs of requests that haven't been processed.
NextToken (string) --
Pagination token. Not used.
Check if an operation can be paginated.
Creates a rule to control sampling behavior for instrumented applications. Services retrieve rules with GetSamplingRules , and evaluate each rule in ascending order of priority for each request. If a rule matches, the service records a trace, borrowing it from the reservoir size. After 10 seconds, the service reports back to X-Ray with GetSamplingTargets to get updated versions of each in-use rule. The updated rule contains a trace quota that the service can use instead of borrowing from the reservoir.
See also: AWS API Documentation
Request Syntax
response = client.create_sampling_rule(
SamplingRule={
'RuleName': 'string',
'RuleARN': 'string',
'ResourceARN': 'string',
'Priority': 123,
'FixedRate': 123.0,
'ReservoirSize': 123,
'ServiceName': 'string',
'ServiceType': 'string',
'Host': 'string',
'HTTPMethod': 'string',
'URLPath': 'string',
'Version': 123,
'Attributes': {
'string': 'string'
}
}
)
[REQUIRED]
The rule definition.
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
Matches the ARN of the AWS resource on which the service runs.
The priority of the sampling rule.
The percentage of matching requests to instrument, after the reservoir is exhausted.
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
Matches the name that the service uses to identify itself in segments.
Matches the origin that the service uses to identify its type in segments.
Matches the hostname from a request URL.
Matches the HTTP method of a request.
Matches the path from a request URL.
The version of the sampling rule format (1 ).
Matches attributes derived from the request.
{
'SamplingRuleRecord': {
'SamplingRule': {
'RuleName': 'string',
'RuleARN': 'string',
'ResourceARN': 'string',
'Priority': 123,
'FixedRate': 123.0,
'ReservoirSize': 123,
'ServiceName': 'string',
'ServiceType': 'string',
'Host': 'string',
'HTTPMethod': 'string',
'URLPath': 'string',
'Version': 123,
'Attributes': {
'string': 'string'
}
},
'CreatedAt': datetime(2015, 1, 1),
'ModifiedAt': datetime(2015, 1, 1)
}
}
Response Structure
The saved rule definition and metadata.
The sampling rule.
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
Matches the ARN of the AWS resource on which the service runs.
The priority of the sampling rule.
The percentage of matching requests to instrument, after the reservoir is exhausted.
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
Matches the name that the service uses to identify itself in segments.
Matches the origin that the service uses to identify its type in segments.
Matches the hostname from a request URL.
Matches the HTTP method of a request.
Matches the path from a request URL.
The version of the sampling rule format (1 ).
Matches attributes derived from the request.
When the rule was created.
When the rule was last modified.
Deletes a sampling rule.
See also: AWS API Documentation
Request Syntax
response = client.delete_sampling_rule(
RuleName='string',
RuleARN='string'
)
dict
Response Syntax
{
'SamplingRuleRecord': {
'SamplingRule': {
'RuleName': 'string',
'RuleARN': 'string',
'ResourceARN': 'string',
'Priority': 123,
'FixedRate': 123.0,
'ReservoirSize': 123,
'ServiceName': 'string',
'ServiceType': 'string',
'Host': 'string',
'HTTPMethod': 'string',
'URLPath': 'string',
'Version': 123,
'Attributes': {
'string': 'string'
}
},
'CreatedAt': datetime(2015, 1, 1),
'ModifiedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
SamplingRuleRecord (dict) --
The deleted rule definition and metadata.
SamplingRule (dict) --
The sampling rule.
RuleName (string) --
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
RuleARN (string) --
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
ResourceARN (string) --
Matches the ARN of the AWS resource on which the service runs.
Priority (integer) --
The priority of the sampling rule.
FixedRate (float) --
The percentage of matching requests to instrument, after the reservoir is exhausted.
ReservoirSize (integer) --
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
ServiceName (string) --
Matches the name that the service uses to identify itself in segments.
ServiceType (string) --
Matches the origin that the service uses to identify its type in segments.
Host (string) --
Matches the hostname from a request URL.
HTTPMethod (string) --
Matches the HTTP method of a request.
URLPath (string) --
Matches the path from a request URL.
Version (integer) --
The version of the sampling rule format (1 ).
Attributes (dict) --
Matches attributes derived from the request.
CreatedAt (datetime) --
When the rule was created.
ModifiedAt (datetime) --
When the rule was last modified.
Generate a presigned url given a client, its method, and arguments
The presigned url
Retrieves the current encryption configuration for X-Ray data.
See also: AWS API Documentation
Request Syntax
response = client.get_encryption_config()
{
'EncryptionConfig': {
'KeyId': 'string',
'Status': 'UPDATING'|'ACTIVE',
'Type': 'NONE'|'KMS'
}
}
Response Structure
The encryption configuration document.
The ID of the customer master key (CMK) used for encryption, if applicable.
The encryption status. While the status is UPDATING , X-Ray may encrypt data with a combination of the new and old settings.
The type of encryption. Set to KMS for encryption with CMKs. Set to NONE for default encryption.
Create a paginator for an operation.
Retrieves all sampling rules.
See also: AWS API Documentation
Request Syntax
response = client.get_sampling_rules(
NextToken='string'
)
{
'SamplingRuleRecords': [
{
'SamplingRule': {
'RuleName': 'string',
'RuleARN': 'string',
'ResourceARN': 'string',
'Priority': 123,
'FixedRate': 123.0,
'ReservoirSize': 123,
'ServiceName': 'string',
'ServiceType': 'string',
'Host': 'string',
'HTTPMethod': 'string',
'URLPath': 'string',
'Version': 123,
'Attributes': {
'string': 'string'
}
},
'CreatedAt': datetime(2015, 1, 1),
'ModifiedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
Rule definitions and metadata.
A SamplingRule and its metadata.
The sampling rule.
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
Matches the ARN of the AWS resource on which the service runs.
The priority of the sampling rule.
The percentage of matching requests to instrument, after the reservoir is exhausted.
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
Matches the name that the service uses to identify itself in segments.
Matches the origin that the service uses to identify its type in segments.
Matches the hostname from a request URL.
Matches the HTTP method of a request.
Matches the path from a request URL.
The version of the sampling rule format (1 ).
Matches attributes derived from the request.
When the rule was created.
When the rule was last modified.
Pagination token. Not used.
Retrieves information about recent sampling results for all sampling rules.
See also: AWS API Documentation
Request Syntax
response = client.get_sampling_statistic_summaries(
NextToken='string'
)
{
'SamplingStatisticSummaries': [
{
'RuleName': 'string',
'Timestamp': datetime(2015, 1, 1),
'RequestCount': 123,
'BorrowCount': 123,
'SampledCount': 123
},
],
'NextToken': 'string'
}
Response Structure
Information about the number of requests instrumented for each sampling rule.
Aggregated request sampling data for a sampling rule across all services for a 10 second window.
The name of the sampling rule.
The start time of the reporting window.
The number of requests that matched the rule.
The number of requests recorded with borrowed reservoir quota.
The number of requests recorded.
Pagination token. Not used.
Requests a sampling quota for rules that the service is using to sample requests.
See also: AWS API Documentation
Request Syntax
response = client.get_sampling_targets(
SamplingStatisticsDocuments=[
{
'RuleName': 'string',
'ClientID': 'string',
'Timestamp': datetime(2015, 1, 1),
'RequestCount': 123,
'SampledCount': 123,
'BorrowCount': 123
},
]
)
[REQUIRED]
Information about rules that the service is using to sample requests.
Request sampling results for a single rule from a service. Results are for the last 10 seconds unless the service has been assigned a longer reporting interval after a previous call to GetSamplingTargets .
The name of the sampling rule.
A unique identifier for the service in hexadecimal.
The current time.
The number of requests that matched the rule.
The number of requests recorded.
The number of requests recorded with borrowed reservoir quota.
{
'SamplingTargetDocuments': [
{
'RuleName': 'string',
'FixedRate': 123.0,
'ReservoirQuota': 123,
'ReservoirQuotaTTL': datetime(2015, 1, 1),
'Interval': 123
},
],
'LastRuleModification': datetime(2015, 1, 1),
'UnprocessedStatistics': [
{
'RuleName': 'string',
'ErrorCode': 'string',
'Message': 'string'
},
]
}
Response Structure
Updated rules that the service should use to sample requests.
Temporary changes to a sampling rule configuration. To meet the global sampling target for a rule, X-Ray calculates a new reservoir for each service based on the recent sampling results of all services that called GetSamplingTargets .
The name of the sampling rule.
The percentage of matching requests to instrument, after the reservoir is exhausted.
The number of requests per second that X-Ray allocated this service.
When the reservoir quota expires.
The number of seconds for the service to wait before getting sampling targets again.
The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version.
Information about SamplingStatisticsDocument that X-Ray could not process.
Sampling statistics from a call to GetSamplingTargets that X-Ray could not process.
The name of the sampling rule.
The error code.
The error message.
Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the AWS X-Ray SDK. Downstream services can be other applications, AWS resources, HTTP web APIs, or SQL databases.
See also: AWS API Documentation
Request Syntax
response = client.get_service_graph(
StartTime=datetime(2015, 1, 1),
EndTime=datetime(2015, 1, 1),
NextToken='string'
)
[REQUIRED]
The start of the time frame for which to generate a graph.
[REQUIRED]
The end of the time frame for which to generate a graph.
dict
Response Syntax
{
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'Services': [
{
'ReferenceId': 123,
'Name': 'string',
'Names': [
'string',
],
'Root': True|False,
'AccountId': 'string',
'Type': 'string',
'State': 'string',
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'Edges': [
{
'ReferenceId': 123,
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'SummaryStatistics': {
'OkCount': 123,
'ErrorStatistics': {
'ThrottleCount': 123,
'OtherCount': 123,
'TotalCount': 123
},
'FaultStatistics': {
'OtherCount': 123,
'TotalCount': 123
},
'TotalCount': 123,
'TotalResponseTime': 123.0
},
'ResponseTimeHistogram': [
{
'Value': 123.0,
'Count': 123
},
],
'Aliases': [
{
'Name': 'string',
'Names': [
'string',
],
'Type': 'string'
},
]
},
],
'SummaryStatistics': {
'OkCount': 123,
'ErrorStatistics': {
'ThrottleCount': 123,
'OtherCount': 123,
'TotalCount': 123
},
'FaultStatistics': {
'OtherCount': 123,
'TotalCount': 123
},
'TotalCount': 123,
'TotalResponseTime': 123.0
},
'DurationHistogram': [
{
'Value': 123.0,
'Count': 123
},
],
'ResponseTimeHistogram': [
{
'Value': 123.0,
'Count': 123
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
StartTime (datetime) --
The start of the time frame for which the graph was generated.
EndTime (datetime) --
The end of the time frame for which the graph was generated.
Services (list) --
The services that have processed a traced request during the specified time frame.
(dict) --
Information about an application that processed requests, users that made requests, or downstream services, resources and applications that an application used.
ReferenceId (integer) --
Identifier for the service. Unique within the service map.
Name (string) --
The canonical name of the service.
Names (list) --
A list of names for the service, including the canonical name.
Root (boolean) --
Indicates that the service was the first service to process a request.
AccountId (string) --
Identifier of the AWS account in which the service runs.
Type (string) --
The type of service.
State (string) --
The service's state.
StartTime (datetime) --
The start time of the first segment that the service generated.
EndTime (datetime) --
The end time of the last segment that the service generated.
Edges (list) --
Connections to downstream services.
(dict) --
Information about a connection between two services.
ReferenceId (integer) --
Identifier of the edge. Unique within a service map.
StartTime (datetime) --
The start time of the first segment on the edge.
EndTime (datetime) --
The end time of the last segment on the edge.
SummaryStatistics (dict) --
Response statistics for segments on the edge.
OkCount (integer) --
The number of requests that completed with a 2xx Success status code.
ErrorStatistics (dict) --
Information about requests that failed with a 4xx Client Error status code.
ThrottleCount (integer) --
The number of requests that failed with a 419 throttling status code.
OtherCount (integer) --
The number of requests that failed with untracked 4xx Client Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 4xx Client Error status code.
FaultStatistics (dict) --
Information about requests that failed with a 5xx Server Error status code.
OtherCount (integer) --
The number of requests that failed with untracked 5xx Server Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 5xx Server Error status code.
TotalCount (integer) --
The total number of completed requests.
TotalResponseTime (float) --
The aggregate response time of completed requests.
ResponseTimeHistogram (list) --
A histogram that maps the spread of client response times on an edge.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
Aliases (list) --
Aliases for the edge.
(dict) --
An alias for an edge.
Name (string) --
The canonical name of the alias.
Names (list) --
A list of names for the alias, including the canonical name.
Type (string) --
The type of the alias.
SummaryStatistics (dict) --
Aggregated statistics for the service.
OkCount (integer) --
The number of requests that completed with a 2xx Success status code.
ErrorStatistics (dict) --
Information about requests that failed with a 4xx Client Error status code.
ThrottleCount (integer) --
The number of requests that failed with a 419 throttling status code.
OtherCount (integer) --
The number of requests that failed with untracked 4xx Client Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 4xx Client Error status code.
FaultStatistics (dict) --
Information about requests that failed with a 5xx Server Error status code.
OtherCount (integer) --
The number of requests that failed with untracked 5xx Server Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 5xx Server Error status code.
TotalCount (integer) --
The total number of completed requests.
TotalResponseTime (float) --
The aggregate response time of completed requests.
DurationHistogram (list) --
A histogram that maps the spread of service durations.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
ResponseTimeHistogram (list) --
A histogram that maps the spread of service response times.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
NextToken (string) --
Pagination token. Not used.
Retrieves a service graph for one or more specific trace IDs.
See also: AWS API Documentation
Request Syntax
response = client.get_trace_graph(
TraceIds=[
'string',
],
NextToken='string'
)
[REQUIRED]
Trace IDs of requests for which to generate a service graph.
dict
Response Syntax
{
'Services': [
{
'ReferenceId': 123,
'Name': 'string',
'Names': [
'string',
],
'Root': True|False,
'AccountId': 'string',
'Type': 'string',
'State': 'string',
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'Edges': [
{
'ReferenceId': 123,
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'SummaryStatistics': {
'OkCount': 123,
'ErrorStatistics': {
'ThrottleCount': 123,
'OtherCount': 123,
'TotalCount': 123
},
'FaultStatistics': {
'OtherCount': 123,
'TotalCount': 123
},
'TotalCount': 123,
'TotalResponseTime': 123.0
},
'ResponseTimeHistogram': [
{
'Value': 123.0,
'Count': 123
},
],
'Aliases': [
{
'Name': 'string',
'Names': [
'string',
],
'Type': 'string'
},
]
},
],
'SummaryStatistics': {
'OkCount': 123,
'ErrorStatistics': {
'ThrottleCount': 123,
'OtherCount': 123,
'TotalCount': 123
},
'FaultStatistics': {
'OtherCount': 123,
'TotalCount': 123
},
'TotalCount': 123,
'TotalResponseTime': 123.0
},
'DurationHistogram': [
{
'Value': 123.0,
'Count': 123
},
],
'ResponseTimeHistogram': [
{
'Value': 123.0,
'Count': 123
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Services (list) --
The services that have processed one of the specified requests.
(dict) --
Information about an application that processed requests, users that made requests, or downstream services, resources and applications that an application used.
ReferenceId (integer) --
Identifier for the service. Unique within the service map.
Name (string) --
The canonical name of the service.
Names (list) --
A list of names for the service, including the canonical name.
Root (boolean) --
Indicates that the service was the first service to process a request.
AccountId (string) --
Identifier of the AWS account in which the service runs.
Type (string) --
The type of service.
State (string) --
The service's state.
StartTime (datetime) --
The start time of the first segment that the service generated.
EndTime (datetime) --
The end time of the last segment that the service generated.
Edges (list) --
Connections to downstream services.
(dict) --
Information about a connection between two services.
ReferenceId (integer) --
Identifier of the edge. Unique within a service map.
StartTime (datetime) --
The start time of the first segment on the edge.
EndTime (datetime) --
The end time of the last segment on the edge.
SummaryStatistics (dict) --
Response statistics for segments on the edge.
OkCount (integer) --
The number of requests that completed with a 2xx Success status code.
ErrorStatistics (dict) --
Information about requests that failed with a 4xx Client Error status code.
ThrottleCount (integer) --
The number of requests that failed with a 419 throttling status code.
OtherCount (integer) --
The number of requests that failed with untracked 4xx Client Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 4xx Client Error status code.
FaultStatistics (dict) --
Information about requests that failed with a 5xx Server Error status code.
OtherCount (integer) --
The number of requests that failed with untracked 5xx Server Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 5xx Server Error status code.
TotalCount (integer) --
The total number of completed requests.
TotalResponseTime (float) --
The aggregate response time of completed requests.
ResponseTimeHistogram (list) --
A histogram that maps the spread of client response times on an edge.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
Aliases (list) --
Aliases for the edge.
(dict) --
An alias for an edge.
Name (string) --
The canonical name of the alias.
Names (list) --
A list of names for the alias, including the canonical name.
Type (string) --
The type of the alias.
SummaryStatistics (dict) --
Aggregated statistics for the service.
OkCount (integer) --
The number of requests that completed with a 2xx Success status code.
ErrorStatistics (dict) --
Information about requests that failed with a 4xx Client Error status code.
ThrottleCount (integer) --
The number of requests that failed with a 419 throttling status code.
OtherCount (integer) --
The number of requests that failed with untracked 4xx Client Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 4xx Client Error status code.
FaultStatistics (dict) --
Information about requests that failed with a 5xx Server Error status code.
OtherCount (integer) --
The number of requests that failed with untracked 5xx Server Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 5xx Server Error status code.
TotalCount (integer) --
The total number of completed requests.
TotalResponseTime (float) --
The aggregate response time of completed requests.
DurationHistogram (list) --
A histogram that maps the spread of service durations.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
ResponseTimeHistogram (list) --
A histogram that maps the spread of service response times.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
NextToken (string) --
Pagination token. Not used.
Retrieves IDs and metadata 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 AWS X-Ray Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.get_trace_summaries(
StartTime=datetime(2015, 1, 1),
EndTime=datetime(2015, 1, 1),
Sampling=True|False,
FilterExpression='string',
NextToken='string'
)
[REQUIRED]
The start of the time frame for which to retrieve traces.
[REQUIRED]
The end of the time frame for which to retrieve traces.
dict
Response Syntax
{
'TraceSummaries': [
{
'Id': 'string',
'Duration': 123.0,
'ResponseTime': 123.0,
'HasFault': True|False,
'HasError': True|False,
'HasThrottle': True|False,
'IsPartial': True|False,
'Http': {
'HttpURL': 'string',
'HttpStatus': 123,
'HttpMethod': 'string',
'UserAgent': 'string',
'ClientIp': 'string'
},
'Annotations': {
'string': [
{
'AnnotationValue': {
'NumberValue': 123.0,
'BooleanValue': True|False,
'StringValue': 'string'
},
'ServiceIds': [
{
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Type': 'string'
},
]
},
]
},
'Users': [
{
'UserName': 'string',
'ServiceIds': [
{
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Type': 'string'
},
]
},
],
'ServiceIds': [
{
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Type': 'string'
},
]
},
],
'ApproximateTime': datetime(2015, 1, 1),
'TracesProcessedCount': 123,
'NextToken': 'string'
}
Response Structure
(dict) --
TraceSummaries (list) --
Trace IDs and metadata for traces that were found in the specified time frame.
(dict) --
Metadata generated from the segment documents in a trace.
Id (string) --
The unique identifier for the request that generated the trace's segments and subsegments.
Duration (float) --
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
ResponseTime (float) --
The length of time in seconds between the start and end times of the root segment. If the service performs work asynchronously, the response time measures the time before the response is sent to the user, while the duration measures the amount of time before the last traced activity completes.
HasFault (boolean) --
One or more of the segment documents has a 500 series error.
HasError (boolean) --
One or more of the segment documents has a 400 series error.
HasThrottle (boolean) --
One or more of the segment documents has a 429 throttling error.
IsPartial (boolean) --
One or more of the segment documents is in progress.
Http (dict) --
Information about the HTTP request served by the trace.
HttpURL (string) --
The request URL.
HttpStatus (integer) --
The response status.
HttpMethod (string) --
The request method.
UserAgent (string) --
The request's user agent string.
ClientIp (string) --
The IP address of the requestor.
Annotations (dict) --
Annotations from the trace's segment documents.
(string) --
(list) --
(dict) --
Information about a segment annotation.
AnnotationValue (dict) --
Values of the annotation.
NumberValue (float) --
Value for a Number annotation.
BooleanValue (boolean) --
Value for a Boolean annotation.
StringValue (string) --
Value for a String annotation.
ServiceIds (list) --
Services to which the annotation applies.
Users (list) --
Users from the trace's segment documents.
(dict) --
Information about a user recorded in segment documents.
UserName (string) --
The user's name.
ServiceIds (list) --
Services that the user's request hit.
ServiceIds (list) --
Service IDs from the trace's segment documents.
ApproximateTime (datetime) --
The start time of this page of results.
TracesProcessedCount (integer) --
The total number of traces processed, including traces that did not match the specified filter expression.
NextToken (string) --
If the requested time frame contained more than one page of results, you can use this token to retrieve the next page. The first page contains the most most recent results, closest to the end of the time frame.
Returns an object that can wait for some condition.
Updates the encryption configuration for X-Ray data.
See also: AWS API Documentation
Request Syntax
response = client.put_encryption_config(
KeyId='string',
Type='NONE'|'KMS'
)
An AWS KMS customer master key (CMK) in one of the following formats:
Omit this key if you set Type to NONE .
[REQUIRED]
The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption.
dict
Response Syntax
{
'EncryptionConfig': {
'KeyId': 'string',
'Status': 'UPDATING'|'ACTIVE',
'Type': 'NONE'|'KMS'
}
}
Response Structure
(dict) --
EncryptionConfig (dict) --
The new encryption configuration.
KeyId (string) --
The ID of the customer master key (CMK) used for encryption, if applicable.
Status (string) --
The encryption status. While the status is UPDATING , X-Ray may encrypt data with a combination of the new and old settings.
Type (string) --
The type of encryption. Set to KMS for encryption with CMKs. Set to NONE for default encryption.
Used by the AWS X-Ray daemon to upload telemetry.
See also: AWS API Documentation
Request Syntax
response = client.put_telemetry_records(
TelemetryRecords=[
{
'Timestamp': datetime(2015, 1, 1),
'SegmentsReceivedCount': 123,
'SegmentsSentCount': 123,
'SegmentsSpilloverCount': 123,
'SegmentsRejectedCount': 123,
'BackendConnectionErrors': {
'TimeoutCount': 123,
'ConnectionRefusedCount': 123,
'HTTPCode4XXCount': 123,
'HTTPCode5XXCount': 123,
'UnknownHostCount': 123,
'OtherCount': 123
}
},
],
EC2InstanceId='string',
Hostname='string',
ResourceARN='string'
)
[REQUIRED]
dict
Response Syntax
{}
Response Structure
Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment documents and sends them to the X-Ray daemon, which uploads them in batches. A segment document can be a completed segment, an in-progress segment, or an array of subsegments.
Segments must include the following fields. For the full segment document schema, see AWS X-Ray Segment Documents in the AWS X-Ray Developer Guide .
Required Segment Document Fields
A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This includes:
Trace ID Format
See also: AWS API Documentation
Request Syntax
response = client.put_trace_segments(
TraceSegmentDocuments=[
'string',
]
)
[REQUIRED]
A string containing a JSON document defining one or more segments or subsegments.
{
'UnprocessedTraceSegments': [
{
'Id': 'string',
'ErrorCode': 'string',
'Message': 'string'
},
]
}
Response Structure
Segments that failed processing.
Information about a segment that failed processing.
The segment's ID.
The error that caused processing to fail.
The error message.
Modifies a sampling rule's configuration.
See also: AWS API Documentation
Request Syntax
response = client.update_sampling_rule(
SamplingRuleUpdate={
'RuleName': 'string',
'RuleARN': 'string',
'ResourceARN': 'string',
'Priority': 123,
'FixedRate': 123.0,
'ReservoirSize': 123,
'Host': 'string',
'ServiceName': 'string',
'ServiceType': 'string',
'HTTPMethod': 'string',
'URLPath': 'string',
'Attributes': {
'string': 'string'
}
}
)
[REQUIRED]
The rule and fields to change.
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
Matches the ARN of the AWS resource on which the service runs.
The priority of the sampling rule.
The percentage of matching requests to instrument, after the reservoir is exhausted.
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
Matches the hostname from a request URL.
Matches the name that the service uses to identify itself in segments.
Matches the origin that the service uses to identify its type in segments.
Matches the HTTP method of a request.
Matches the path from a request URL.
Matches attributes derived from the request.
{
'SamplingRuleRecord': {
'SamplingRule': {
'RuleName': 'string',
'RuleARN': 'string',
'ResourceARN': 'string',
'Priority': 123,
'FixedRate': 123.0,
'ReservoirSize': 123,
'ServiceName': 'string',
'ServiceType': 'string',
'Host': 'string',
'HTTPMethod': 'string',
'URLPath': 'string',
'Version': 123,
'Attributes': {
'string': 'string'
}
},
'CreatedAt': datetime(2015, 1, 1),
'ModifiedAt': datetime(2015, 1, 1)
}
}
Response Structure
The updated rule definition and metadata.
The sampling rule.
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
Matches the ARN of the AWS resource on which the service runs.
The priority of the sampling rule.
The percentage of matching requests to instrument, after the reservoir is exhausted.
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
Matches the name that the service uses to identify itself in segments.
Matches the origin that the service uses to identify its type in segments.
Matches the hostname from a request URL.
Matches the HTTP method of a request.
Matches the path from a request URL.
The version of the sampling rule format (1 ).
Matches attributes derived from the request.
When the rule was created.
When the rule was last modified.
The available paginators are:
paginator = client.get_paginator('batch_get_traces')
Creates an iterator that will paginate through responses from XRay.Client.batch_get_traces().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
TraceIds=[
'string',
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
Specify the trace IDs of requests for which to retrieve segments.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'Traces': [
{
'Id': 'string',
'Duration': 123.0,
'Segments': [
{
'Id': 'string',
'Document': 'string'
},
]
},
],
'UnprocessedTraceIds': [
'string',
],
}
Response Structure
(dict) --
Traces (list) --
Full traces for the specified requests.
(dict) --
A collection of segment documents with matching trace IDs.
Id (string) --
The unique identifier for the request that generated the trace's segments and subsegments.
Duration (float) --
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
Segments (list) --
Segment documents for the segments and subsegments that comprise the trace.
(dict) --
A segment from a trace that has been ingested by the X-Ray service. The segment can be compiled from documents uploaded with PutTraceSegments , or an inferred segment for a downstream service, generated from a subsegment sent by the service that called it.
For the full segment document schema, see AWS X-Ray Segment Documents in the AWS X-Ray Developer Guide .
Id (string) --
The segment's ID.
Document (string) --
The segment document.
UnprocessedTraceIds (list) --
Trace IDs of requests that haven't been processed.
paginator = client.get_paginator('get_service_graph')
Creates an iterator that will paginate through responses from XRay.Client.get_service_graph().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
StartTime=datetime(2015, 1, 1),
EndTime=datetime(2015, 1, 1),
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The start of the time frame for which to generate a graph.
[REQUIRED]
The end of the time frame for which to generate a graph.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'Services': [
{
'ReferenceId': 123,
'Name': 'string',
'Names': [
'string',
],
'Root': True|False,
'AccountId': 'string',
'Type': 'string',
'State': 'string',
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'Edges': [
{
'ReferenceId': 123,
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'SummaryStatistics': {
'OkCount': 123,
'ErrorStatistics': {
'ThrottleCount': 123,
'OtherCount': 123,
'TotalCount': 123
},
'FaultStatistics': {
'OtherCount': 123,
'TotalCount': 123
},
'TotalCount': 123,
'TotalResponseTime': 123.0
},
'ResponseTimeHistogram': [
{
'Value': 123.0,
'Count': 123
},
],
'Aliases': [
{
'Name': 'string',
'Names': [
'string',
],
'Type': 'string'
},
]
},
],
'SummaryStatistics': {
'OkCount': 123,
'ErrorStatistics': {
'ThrottleCount': 123,
'OtherCount': 123,
'TotalCount': 123
},
'FaultStatistics': {
'OtherCount': 123,
'TotalCount': 123
},
'TotalCount': 123,
'TotalResponseTime': 123.0
},
'DurationHistogram': [
{
'Value': 123.0,
'Count': 123
},
],
'ResponseTimeHistogram': [
{
'Value': 123.0,
'Count': 123
},
]
},
],
}
Response Structure
(dict) --
StartTime (datetime) --
The start of the time frame for which the graph was generated.
EndTime (datetime) --
The end of the time frame for which the graph was generated.
Services (list) --
The services that have processed a traced request during the specified time frame.
(dict) --
Information about an application that processed requests, users that made requests, or downstream services, resources and applications that an application used.
ReferenceId (integer) --
Identifier for the service. Unique within the service map.
Name (string) --
The canonical name of the service.
Names (list) --
A list of names for the service, including the canonical name.
Root (boolean) --
Indicates that the service was the first service to process a request.
AccountId (string) --
Identifier of the AWS account in which the service runs.
Type (string) --
The type of service.
State (string) --
The service's state.
StartTime (datetime) --
The start time of the first segment that the service generated.
EndTime (datetime) --
The end time of the last segment that the service generated.
Edges (list) --
Connections to downstream services.
(dict) --
Information about a connection between two services.
ReferenceId (integer) --
Identifier of the edge. Unique within a service map.
StartTime (datetime) --
The start time of the first segment on the edge.
EndTime (datetime) --
The end time of the last segment on the edge.
SummaryStatistics (dict) --
Response statistics for segments on the edge.
OkCount (integer) --
The number of requests that completed with a 2xx Success status code.
ErrorStatistics (dict) --
Information about requests that failed with a 4xx Client Error status code.
ThrottleCount (integer) --
The number of requests that failed with a 419 throttling status code.
OtherCount (integer) --
The number of requests that failed with untracked 4xx Client Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 4xx Client Error status code.
FaultStatistics (dict) --
Information about requests that failed with a 5xx Server Error status code.
OtherCount (integer) --
The number of requests that failed with untracked 5xx Server Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 5xx Server Error status code.
TotalCount (integer) --
The total number of completed requests.
TotalResponseTime (float) --
The aggregate response time of completed requests.
ResponseTimeHistogram (list) --
A histogram that maps the spread of client response times on an edge.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
Aliases (list) --
Aliases for the edge.
(dict) --
An alias for an edge.
Name (string) --
The canonical name of the alias.
Names (list) --
A list of names for the alias, including the canonical name.
Type (string) --
The type of the alias.
SummaryStatistics (dict) --
Aggregated statistics for the service.
OkCount (integer) --
The number of requests that completed with a 2xx Success status code.
ErrorStatistics (dict) --
Information about requests that failed with a 4xx Client Error status code.
ThrottleCount (integer) --
The number of requests that failed with a 419 throttling status code.
OtherCount (integer) --
The number of requests that failed with untracked 4xx Client Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 4xx Client Error status code.
FaultStatistics (dict) --
Information about requests that failed with a 5xx Server Error status code.
OtherCount (integer) --
The number of requests that failed with untracked 5xx Server Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 5xx Server Error status code.
TotalCount (integer) --
The total number of completed requests.
TotalResponseTime (float) --
The aggregate response time of completed requests.
DurationHistogram (list) --
A histogram that maps the spread of service durations.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
ResponseTimeHistogram (list) --
A histogram that maps the spread of service response times.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
paginator = client.get_paginator('get_trace_graph')
Creates an iterator that will paginate through responses from XRay.Client.get_trace_graph().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
TraceIds=[
'string',
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
Trace IDs of requests for which to generate a service graph.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'Services': [
{
'ReferenceId': 123,
'Name': 'string',
'Names': [
'string',
],
'Root': True|False,
'AccountId': 'string',
'Type': 'string',
'State': 'string',
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'Edges': [
{
'ReferenceId': 123,
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'SummaryStatistics': {
'OkCount': 123,
'ErrorStatistics': {
'ThrottleCount': 123,
'OtherCount': 123,
'TotalCount': 123
},
'FaultStatistics': {
'OtherCount': 123,
'TotalCount': 123
},
'TotalCount': 123,
'TotalResponseTime': 123.0
},
'ResponseTimeHistogram': [
{
'Value': 123.0,
'Count': 123
},
],
'Aliases': [
{
'Name': 'string',
'Names': [
'string',
],
'Type': 'string'
},
]
},
],
'SummaryStatistics': {
'OkCount': 123,
'ErrorStatistics': {
'ThrottleCount': 123,
'OtherCount': 123,
'TotalCount': 123
},
'FaultStatistics': {
'OtherCount': 123,
'TotalCount': 123
},
'TotalCount': 123,
'TotalResponseTime': 123.0
},
'DurationHistogram': [
{
'Value': 123.0,
'Count': 123
},
],
'ResponseTimeHistogram': [
{
'Value': 123.0,
'Count': 123
},
]
},
],
}
Response Structure
(dict) --
Services (list) --
The services that have processed one of the specified requests.
(dict) --
Information about an application that processed requests, users that made requests, or downstream services, resources and applications that an application used.
ReferenceId (integer) --
Identifier for the service. Unique within the service map.
Name (string) --
The canonical name of the service.
Names (list) --
A list of names for the service, including the canonical name.
Root (boolean) --
Indicates that the service was the first service to process a request.
AccountId (string) --
Identifier of the AWS account in which the service runs.
Type (string) --
The type of service.
State (string) --
The service's state.
StartTime (datetime) --
The start time of the first segment that the service generated.
EndTime (datetime) --
The end time of the last segment that the service generated.
Edges (list) --
Connections to downstream services.
(dict) --
Information about a connection between two services.
ReferenceId (integer) --
Identifier of the edge. Unique within a service map.
StartTime (datetime) --
The start time of the first segment on the edge.
EndTime (datetime) --
The end time of the last segment on the edge.
SummaryStatistics (dict) --
Response statistics for segments on the edge.
OkCount (integer) --
The number of requests that completed with a 2xx Success status code.
ErrorStatistics (dict) --
Information about requests that failed with a 4xx Client Error status code.
ThrottleCount (integer) --
The number of requests that failed with a 419 throttling status code.
OtherCount (integer) --
The number of requests that failed with untracked 4xx Client Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 4xx Client Error status code.
FaultStatistics (dict) --
Information about requests that failed with a 5xx Server Error status code.
OtherCount (integer) --
The number of requests that failed with untracked 5xx Server Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 5xx Server Error status code.
TotalCount (integer) --
The total number of completed requests.
TotalResponseTime (float) --
The aggregate response time of completed requests.
ResponseTimeHistogram (list) --
A histogram that maps the spread of client response times on an edge.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
Aliases (list) --
Aliases for the edge.
(dict) --
An alias for an edge.
Name (string) --
The canonical name of the alias.
Names (list) --
A list of names for the alias, including the canonical name.
Type (string) --
The type of the alias.
SummaryStatistics (dict) --
Aggregated statistics for the service.
OkCount (integer) --
The number of requests that completed with a 2xx Success status code.
ErrorStatistics (dict) --
Information about requests that failed with a 4xx Client Error status code.
ThrottleCount (integer) --
The number of requests that failed with a 419 throttling status code.
OtherCount (integer) --
The number of requests that failed with untracked 4xx Client Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 4xx Client Error status code.
FaultStatistics (dict) --
Information about requests that failed with a 5xx Server Error status code.
OtherCount (integer) --
The number of requests that failed with untracked 5xx Server Error status codes.
TotalCount (integer) --
The total number of requests that failed with a 5xx Server Error status code.
TotalCount (integer) --
The total number of completed requests.
TotalResponseTime (float) --
The aggregate response time of completed requests.
DurationHistogram (list) --
A histogram that maps the spread of service durations.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
ResponseTimeHistogram (list) --
A histogram that maps the spread of service response times.
(dict) --
An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.
Value (float) --
The value of the entry.
Count (integer) --
The prevalence of the entry.
paginator = client.get_paginator('get_trace_summaries')
Creates an iterator that will paginate through responses from XRay.Client.get_trace_summaries().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
StartTime=datetime(2015, 1, 1),
EndTime=datetime(2015, 1, 1),
Sampling=True|False,
FilterExpression='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The start of the time frame for which to retrieve traces.
[REQUIRED]
The end of the time frame for which to retrieve traces.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'TraceSummaries': [
{
'Id': 'string',
'Duration': 123.0,
'ResponseTime': 123.0,
'HasFault': True|False,
'HasError': True|False,
'HasThrottle': True|False,
'IsPartial': True|False,
'Http': {
'HttpURL': 'string',
'HttpStatus': 123,
'HttpMethod': 'string',
'UserAgent': 'string',
'ClientIp': 'string'
},
'Annotations': {
'string': [
{
'AnnotationValue': {
'NumberValue': 123.0,
'BooleanValue': True|False,
'StringValue': 'string'
},
'ServiceIds': [
{
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Type': 'string'
},
]
},
]
},
'Users': [
{
'UserName': 'string',
'ServiceIds': [
{
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Type': 'string'
},
]
},
],
'ServiceIds': [
{
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Type': 'string'
},
]
},
],
'ApproximateTime': datetime(2015, 1, 1),
'TracesProcessedCount': 123,
}
Response Structure
(dict) --
TraceSummaries (list) --
Trace IDs and metadata for traces that were found in the specified time frame.
(dict) --
Metadata generated from the segment documents in a trace.
Id (string) --
The unique identifier for the request that generated the trace's segments and subsegments.
Duration (float) --
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
ResponseTime (float) --
The length of time in seconds between the start and end times of the root segment. If the service performs work asynchronously, the response time measures the time before the response is sent to the user, while the duration measures the amount of time before the last traced activity completes.
HasFault (boolean) --
One or more of the segment documents has a 500 series error.
HasError (boolean) --
One or more of the segment documents has a 400 series error.
HasThrottle (boolean) --
One or more of the segment documents has a 429 throttling error.
IsPartial (boolean) --
One or more of the segment documents is in progress.
Http (dict) --
Information about the HTTP request served by the trace.
HttpURL (string) --
The request URL.
HttpStatus (integer) --
The response status.
HttpMethod (string) --
The request method.
UserAgent (string) --
The request's user agent string.
ClientIp (string) --
The IP address of the requestor.
Annotations (dict) --
Annotations from the trace's segment documents.
(string) --
(list) --
(dict) --
Information about a segment annotation.
AnnotationValue (dict) --
Values of the annotation.
NumberValue (float) --
Value for a Number annotation.
BooleanValue (boolean) --
Value for a Boolean annotation.
StringValue (string) --
Value for a String annotation.
ServiceIds (list) --
Services to which the annotation applies.
Users (list) --
Users from the trace's segment documents.
(dict) --
Information about a user recorded in segment documents.
UserName (string) --
The user's name.
ServiceIds (list) --
Services that the user's request hit.
ServiceIds (list) --
Service IDs from the trace's segment documents.
ApproximateTime (datetime) --
The start time of this page of results.
TracesProcessedCount (integer) --
The total number of traces processed, including traces that did not match the specified filter expression.