Skip to content

Commit 355e33b

Browse files
authored
Merge pull request #219 from igorlg/docs/logger-supress-clarify
docs: Clarify Logger keys that cannot be suppressed
2 parents 7addeab + d94d32a commit 355e33b

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)