Skip to content

Commit d94d32a

Browse files
committed
Add clarification on the documents around Log keys that cannot be supressed
1 parent 7addeab commit d94d32a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/core/logger.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ logger = Logger(stream=stdout, log_record_order=["message"]) # highlight-line
353353
logger = Logger(stream=stdout, log_record_order=["level","location","message","timestamp"]) # highlight-line
354354
```
355355

356+
Some keys cannot be supressed in the Log records: `sampling_rate` is part of the specification and cannot be supressed; `xray_trace_id` is supressed automatically if X-Ray is not enabled in the Lambda function, and added automatically if it is.
357+
356358
### Logging exceptions
357359

358360
When logging exceptions, Logger will add a new key named `exception`, and will serialize the full traceback as a string.

0 commit comments

Comments
 (0)