Skip to content

Commit 413b05b

Browse files
Adding new logic to sampling request
1 parent c81fecc commit 413b05b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/logger/required_dependencies/test_logger.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_setup_sampling_rate_env_var_with_percent_and_decorator(
169169

170170
@logger.inject_lambda_context
171171
def handler(event, context):
172-
logger.debug(random.random())
172+
logger.debug("test")
173173

174174
# WHEN A lambda handler is invoked multiple times with decorator
175175
for _i in range(total_runs):
@@ -209,7 +209,7 @@ def test_setup_sampling_rate_env_var_with_percent_and_recalculate_manual_method(
209209
logger = Logger(service=service_name, level="INFO", sampling_rate=sampling_rate, stream=stdout)
210210

211211
def handler(event, context):
212-
logger.debug(random.random())
212+
logger.debug("test")
213213
logger.refresh_sample_rate_calculation()
214214

215215
# WHEN A lambda handler is invoked multiple times with manual refresh_sample_rate_calculation()

0 commit comments

Comments
 (0)