Skip to content

Commit 2fe1aa2

Browse files
author
Pankaj Agrawal
committed
docs: Fix doc for log sampling
1 parent 026faaf commit 2fe1aa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/core/logger.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Key | Type | Example | Description
5555
**level** | str | "INFO" | Logging level
5656
**location** | str | "collect.handler:1" | Source code location where statement was executed
5757
**service** | str | "payment" | Service name defined. "service_undefined" will be used if unknown
58-
**sampling_rate** | int | 0.1 | Debug logging sampling rate in percentage e.g. 1% in this case
58+
**sampling_rate** | int | 0.1 | Debug logging sampling rate in percentage e.g. 10% in this case
5959
**message** | any | "Collecting payment" | Log statement value. Unserializable JSON values will be casted to string
6060

6161
## Capturing Lambda context info
@@ -232,7 +232,7 @@ Sampling calculation happens at the Logger class initialization. This means, whe
232232
```python:title=collect.py
233233
from aws_lambda_powertools import Logger
234234

235-
# Sample 1% of debug logs e.g. 0.1
235+
# Sample 10% of debug logs e.g. 0.1
236236
logger = Logger(sample_rate=0.1) # highlight-line
237237

238238
def handler(event, context):

0 commit comments

Comments
 (0)