From 9ac73fa54e9ce82c65eccfe2b45161443c3c9e72 Mon Sep 17 00:00:00 2001 From: Trevor Tabit Date: Thu, 7 Aug 2025 00:36:47 +0000 Subject: [PATCH] Fixed sampling examples, changed sample_rate to sampling_rate --- examples/logger/src/sampling_debug_logs_with_decorator.py | 2 +- .../logger/src/sampling_debug_logs_with_standalone_function.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):