You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier - Currently available for Python only and compatible with Python >=3.6.
6
6
@@ -22,6 +22,8 @@ A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray,
22
22
* Optionally log Lambda request when instructed (disabled by default)
23
23
- Enable via `POWERTOOLS_LOGGER_LOG_EVENT="true"` or explicitly via decorator param
24
24
* Logs canonical custom metric line to logs that can be consumed asynchronously
25
+
* Log sampling enables DEBUG log level for a percentage of requests (disabled by default)
26
+
- Enable via `POWERTOOLS_LOGGER_SAMPLE_RATE=0.1`, ranges from 0 to 1, where 0.1 is 10% and 1 is 100%
25
27
26
28
**Environment variables** used across suite of utilities
0 commit comments