tessl install tessl/pypi-aws-lambda-powertools@3.19.0Comprehensive developer toolkit implementing serverless best practices for AWS Lambda functions in Python
Agent Success
Agent success rate when using this tile
89%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.22x
Baseline
Agent success rate without this tile
73%
{
"context": "This evaluation assesses the engineer's ability to use AWS Lambda Powertools Logger for correlation ID management in a distributed Lambda function. The focus is on properly initializing the Logger, using the inject_lambda_context decorator to extract correlation IDs from API Gateway events, and ensuring correlation IDs are consistently included in all log entries.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Logger Initialization",
"description": "Properly imports and initializes the Logger from aws_lambda_powertools with service name configuration",
"max_score": 15
},
{
"name": "inject_lambda_context Decorator",
"description": "Uses the @logger.inject_lambda_context decorator on the lambda_handler function to automatically extract and inject correlation IDs from the Lambda context",
"max_score": 30
},
{
"name": "Correlation ID Extraction",
"description": "Correctly extracts correlation IDs from API Gateway request headers or allows automatic extraction by the Logger, ensuring the correlation ID is available for all log entries",
"max_score": 25
},
{
"name": "Structured Logging Usage",
"description": "Uses Logger methods (logger.info, logger.debug, logger.error, etc.) instead of print statements for all logging throughout the handler, ensuring correlation IDs are automatically included",
"max_score": 20
},
{
"name": "Log Consistency",
"description": "All log entries within the handler execution share the same correlation ID, demonstrating proper context management across multiple logging calls",
"max_score": 10
}
]
}