@@ -8,90 +8,90 @@ type PowertoolLog = LogAttributes & {
8
8
* Description: Timestamp of actual log statement.
9
9
* Example: "2020-05-24 18:17:33,774"
10
10
*/
11
- timestamp ?: string
11
+ timestamp ?: string ;
12
12
13
13
/**
14
14
* level
15
15
*
16
16
* Description: Logging level
17
17
* Example: "INFO"
18
18
*/
19
- level ?: LogLevel
19
+ level ?: LogLevel ;
20
20
21
21
/**
22
22
* service
23
23
*
24
24
* Description: Service name defined.
25
25
* Example: "payment"
26
26
*/
27
- service : string
27
+ service : string ;
28
28
29
29
/**
30
30
* sampling_rate
31
31
*
32
32
* Description: The value of the logging sampling rate in percentage.
33
33
* Example: 0.1
34
34
*/
35
- sampling_rate ?: number
35
+ sampling_rate ?: number ;
36
36
37
37
/**
38
38
* message
39
39
*
40
40
* Description: Log statement value. Unserializable JSON values will be casted to string.
41
41
* Example: "Collecting payment"
42
42
*/
43
- message ?: string
43
+ message ?: string ;
44
44
45
45
/**
46
46
* xray_trace_id
47
47
*
48
48
* Description: X-Ray Trace ID when Lambda function has enabled Tracing.
49
49
* Example: "1-5759e988-bd862e3fe1be46a994272793"
50
50
*/
51
- xray_trace_id ?: string
51
+ xray_trace_id ?: string ;
52
52
53
53
/**
54
54
* cold_start
55
55
*
56
56
* Description: Indicates whether the current execution experienced a cold start.
57
57
* Example: false
58
58
*/
59
- cold_start ?: boolean
59
+ cold_start ?: boolean ;
60
60
61
61
/**
62
62
* lambda_function_name
63
63
*
64
64
* Description: The name of the Lambda function.
65
65
* Example: "example-powertools-HelloWorldFunction-1P1Z6B39FLU73"
66
66
*/
67
- lambda_function_name ?: string
67
+ lambda_function_name ?: string ;
68
68
69
69
/**
70
70
* lambda_function_memory_size
71
71
*
72
72
* Description: The memory size of the Lambda function.
73
73
* Example: 128
74
74
*/
75
- lambda_function_memory_size ?: number
75
+ lambda_function_memory_size ?: number ;
76
76
77
77
/**
78
78
* lambda_function_arn
79
79
*
80
80
* Description: The ARN of the Lambda function.
81
81
* Example: "arn:aws:lambda:eu-west-1:012345678910:function:example-powertools-HelloWorldFunction-1P1Z6B39FLU73"
82
82
*/
83
- lambda_function_arn ?: string
83
+ lambda_function_arn ?: string ;
84
84
85
85
/**
86
86
* lambda_request_id
87
87
*
88
88
* Description: The request ID of the current invocation.
89
89
* Example: "899856cb-83d1-40d7-8611-9e78f15f32f4"
90
90
*/
91
- lambda_request_id ?: string
91
+ lambda_request_id ?: string ;
92
92
93
93
} ;
94
94
95
95
export {
96
- PowertoolLog
96
+ PowertoolLog ,
97
97
} ;
0 commit comments