Skip to content

Commit f334c6f

Browse files
author
Michael Brewer
committed
refactor(logging): Rename to S3_LAMBDA_OBJECT
1 parent 044c2f8 commit f334c6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aws_lambda_powertools/logging/correlation_paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
APPSYNC_RESOLVER = 'request.headers."x-amzn-trace-id"'
66
APPLICATION_LOAD_BALANCER = 'headers."x-amzn-trace-id"'
77
EVENT_BRIDGE = "id"
8-
S3_OBJECT = "xAmzRequestId"
8+
S3_LAMBDA_OBJECT = "xAmzRequestId"

docs/utilities/data_classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,12 +557,12 @@ This example is based on the AWS Blog post [Introducing Amazon S3 Object Lambda
557557
```python hl_lines="4 8 10"
558558
import requests
559559
from aws_lambda_powertools import Logger
560-
from aws_lambda_powertools.logging.correlation_paths import S3_OBJECT
560+
from aws_lambda_powertools.logging.correlation_paths import S3_LAMBDA_OBJECT
561561
from aws_lambda_powertools.utilities.data_classes.s3_object_event import S3ObjectLambdaEvent
562562

563563
logger = Logger()
564564

565-
@logger.inject_lambda_context(correlation_id_path=S3_OBJECT, log_event=True)
565+
@logger.inject_lambda_context(correlation_id_path=S3_LAMBDA_OBJECT, log_event=True)
566566
def lambda_handler(event, context):
567567
event = S3ObjectLambdaEvent(event)
568568

0 commit comments

Comments
 (0)