1 個回答
- 最新
- 最多得票
- 最多評論
1
If automatic integration doesn't capture the SQS queue as expected, consider manually annotating the trace within your Lambda function to include the SQS queue information. Use the X-Ray SDK to add annotations or metadata to the trace, specifying the SQS queue name or other identifiers.
import boto3
from aws_lambda_powertools import Tracer
tracer = Tracer()
@tracer.capture_lambda_handler
def lambda_handler(event, context):
# Your code here
# Manually annotate the trace with SQS details
tracer.put_annotation("SQSQueue", "YourSQSQueueName")
相關內容
- AWS 官方已更新 2 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 7 個月前
- AWS 官方已更新 1 年前