from aws_lambda_powertools import Tracer from aws_lambda_powertools import Metrics from aws_lambda_powertools.metrics import MetricUnit tracer = Tracer() logger = Logger() metrics = Metrics( namespace="sam-app-jawsdays", service="HelloWorldFunction") @metrics.log_metrics @tracer.capture_lambda_handler @logger.inject_lambda_context(log_event=False) def lambda_handler(event, context): # Powertools Logger logger.info(uuid.uuid4()) # Add Metic metrics.add_metric( name="CallCount", unit=MetricUnit.Count, value=1) # Return Response return None $MPVE8BUDI.FUSJDTΛఆٛ BQQQZ ϝτϦΫεΛ1VTI