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
Copy file name to clipboardExpand all lines: docs/core/logger.md
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,47 @@ You can append your own keys to your existing Logger via `structure_logs(append=
188
188
189
189
This example will add `order_id` if its value is not empty, and in subsequent invocations where `order_id` might not be present it'll remove it from the logger.
190
190
191
+
#### set_correlation_id method
192
+
193
+
You can set a correlation_id to your existing Logger via `set_correlation_id(value)` method.
194
+
195
+
=== "collect.py"
196
+
197
+
```python hl_lines="8"
198
+
from aws_lambda_powertools import Logger
199
+
from aws_lambda_powertools.utilities.data_classes import APIGatewayProxyEvent
0 commit comments