This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Khmelnitsky
committed
Aug 28, 2019
1 parent
0c67dff
commit 48865bf
Showing
12 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
doc_source/logging-using-cloudtrail.md → doc_source/sqs-logging-using-cloudtrail.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Message Metadata<a name="sqs-message-metadata"></a> | ||
|
||
You can use message attributes to attach custom metadata to Amazon SQS messages for your applications\. You can use message system attributes to store metadata for other AWS services, such as AWS X\-Ray\. | ||
|
||
**Topics** | ||
+ [Amazon SQS Message Attributes](sqs-message-attributes.md) | ||
+ [Amazon SQS Message System Attributes](sqs-message-system-attributes.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Amazon SQS Message System Attributes<a name="sqs-message-system-attributes"></a> | ||
|
||
Whereas you can use [message attributes](sqs-message-attributes.md) to attach custom metadata to Amazon SQS messages for your applications, you can use *message system attributes* to store metadata for other AWS services, such as AWS X\-Ray\. For more information, see the `MessageSystemAttribute` request parameter of the `[SendMessage](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html)` and `[SendMessageBatch](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessageBatch.html)` API actions, the `AWSTraceHeader` attribute of the `[ReceiveMessage](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html)` API action, and the `[MessageSystemAttributeValue](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_MessageSystemAttributeValue.html)` data type in the *Amazon Simple Queue Service API Reference*\. | ||
|
||
Message system attributes are structured exactly like message attributes, with the following exceptions: | ||
+ Currently, the only supported message system attribute is `AWSTraceHeader`\. Its type must be `String` and its value must be a correctly formatted AWS X\-Ray trace header string\. | ||
+ The size of a message system attribute doesn't count towards the total size of a message\. |
9 changes: 9 additions & 0 deletions
9
doc_source/sqs-monitoring-logging-automating-troubleshooting.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Monitoring, Logging, Automating, and Troubleshooting Amazon SQS Queues<a name="sqs-monitoring-logging-automating-troubleshooting"></a> | ||
|
||
This section provides information about monitoring, logging, automating, and troubleshooting Amazon SQS queues\. | ||
|
||
**Topics** | ||
+ [Monitoring Amazon SQS Queues Using CloudWatch](sqs-monitoring-using-cloudwatch.md) | ||
+ [Logging Amazon SQS API Calls Using AWS CloudTrail](sqs-logging-using-cloudtrail.md) | ||
+ [Automating Notifications from AWS Services to Amazon SQS using CloudWatch Events](sqs-automating-using-cloudwatch-events.md) | ||
+ [Troubleshooting Amazon Simple Queue Service Queues Using AWS X\-Ray](sqs-troubleshooting-using-x-ray.md) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Troubleshooting Amazon Simple Queue Service Queues Using AWS X\-Ray<a name="sqs-troubleshooting-using-x-ray"></a> | ||
|
||
AWS X\-Ray collects data about requests that your application serves and lets you view and filter data to identify potential issues and opportunities for optimization\. For any traced request to your application, you can see detailed information about the request, the response, and the calls that your application makes to downstream AWS resources, microservices, databases and HTTP web APIs\. | ||
|
||
To send AWS X\-Ray trace headers through Amazon SQS, you can do one of the following: | ||
+ Use the `X-Amzn-Trace-Id` [tracing header](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader)\. | ||
+ Use the `AWSTraceHeader` [message system attribute](sqs-message-system-attributes.md)\. | ||
|
||
To collect data on errors and latency, you must instrument the [https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html?com/amazonaws/services/sqs/AmazonSQSClient.html](https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html?com/amazonaws/services/sqs/AmazonSQSClient.html) client using the [AWS X\-Ray SDK](https://docs.aws.amazon.com/xray-sdk-for-java/latest/javadoc/index.html)\. | ||
|
||
You can use the AWS X\-Ray console to view the map of connections between Amazon SQS and other services that your application uses\. You can also use the console to view metrics such as average latency and failure rates\. For more information, see [Amazon SQS and AWS X\-Ray](https://docs.aws.amazon.com/xray/latest/devguide/xray-services-sqs.html) in the *AWS X\-Ray Developer Guide*\. |