Skip to content

Commit 02abede

Browse files
committed
docs(logger): add DurableContext support note in inject_lambda_context docstring
- Document that inject_lambda_context supports DurableContext - Note automatic unwrapping behavior for better UX
1 parent 9a14569 commit 02abede

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aws_lambda_powertools/logging/logger.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,11 @@ def inject_lambda_context(
473473
POWERTOOLS_LOGGER_LOG_EVENT : str
474474
instruct logger to log Lambda Event (e.g. `"true", "True", "TRUE"`)
475475
476+
Notes
477+
-----
478+
Supports both standard Lambda Context and DurableContext from AWS Durable Execution SDK.
479+
When DurableContext is passed, it automatically unwraps the underlying Lambda Context.
480+
476481
Example
477482
-------
478483
**Captures Lambda contextual runtime info (e.g memory, arn, req_id)**

0 commit comments

Comments
 (0)