Skip to content

Commit 791a24b

Browse files
committed
refactor(logger): renamed context keys
1 parent 7222c9a commit 791a24b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/logger/src/formatter/PowertoolLogFormatter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ class PowertoolLogFormatter extends LogFormatter {
66

77
public formatAttributes(attributes: UnformattedAttributes): PowertoolLog {
88
return {
9-
aws_request_id: attributes.lambdaContext?.awsRequestId,
109
cold_start: attributes.lambdaContext?.coldStart,
11-
lambda_function_arn: attributes.lambdaContext?.invokedFunctionArn,
12-
lambda_function_memory_size: attributes.lambdaContext?.memoryLimitInMB,
13-
lambda_function_name: attributes.lambdaContext?.functionName,
10+
function_arn: attributes.lambdaContext?.invokedFunctionArn,
11+
function_memory_size: attributes.lambdaContext?.memoryLimitInMB,
12+
function_request_id: attributes.lambdaContext?.awsRequestId,
13+
function_name: attributes.lambdaContext?.functionName,
1414
level: attributes.logLevel,
1515
message: attributes.message,
1616
sampling_rate: attributes.sampleRateValue,

0 commit comments

Comments
 (0)