diff --git a/examples/logger/src/sampling_debug_logs_with_decorator.py b/examples/logger/src/sampling_debug_logs_with_decorator.py index b4b7c594255..e63bf977d4a 100644 --- a/examples/logger/src/sampling_debug_logs_with_decorator.py +++ b/examples/logger/src/sampling_debug_logs_with_decorator.py @@ -2,7 +2,7 @@ from aws_lambda_powertools.utilities.typing import LambdaContext # Sample 10% of debug logs e.g. 0.1 -logger = Logger(service="payment", sample_rate=0.1) +logger = Logger(service="payment", sampling_rate=0.1) @logger.inject_lambda_context diff --git a/examples/logger/src/sampling_debug_logs_with_standalone_function.py b/examples/logger/src/sampling_debug_logs_with_standalone_function.py index 8d68eb18352..f21c1109a58 100644 --- a/examples/logger/src/sampling_debug_logs_with_standalone_function.py +++ b/examples/logger/src/sampling_debug_logs_with_standalone_function.py @@ -2,7 +2,7 @@ from aws_lambda_powertools.utilities.typing import LambdaContext # Sample 10% of debug logs e.g. 0.1 -logger = Logger(service="payment", sample_rate=0.1) +logger = Logger(service="payment", sampling_rate=0.1) def lambda_handler(event: dict, context: LambdaContext):