@@ -12,6 +12,7 @@ import { RESOURCE_NAME_PREFIX, STACK_OUTPUT_LOG_GROUP } from './constants.js';
12
12
* In this e2e test for Logger, we test a number of advanced use cases:
13
13
* - Log buffering enabled with flush on error (both manually on logger.error and automatically on uncaught error)
14
14
* - Correlation ID injection (both manually and automatically)
15
+ * - Cold start detection for provisioned concurrency (always false)
15
16
*
16
17
* The test is split into three cases:
17
18
* - Manual instrumentation
@@ -127,6 +128,7 @@ describe('Logger E2E - Advanced uses', () => {
127
128
expect . objectContaining ( {
128
129
level : 'INFO' ,
129
130
message : 'an info log' ,
131
+ cold_start : false ,
130
132
correlation_id : correlationId ,
131
133
} )
132
134
) ;
@@ -136,6 +138,7 @@ describe('Logger E2E - Advanced uses', () => {
136
138
expect . objectContaining ( {
137
139
level : 'DEBUG' ,
138
140
message : 'a buffered debug log' ,
141
+ cold_start : false ,
139
142
correlation_id : correlationId ,
140
143
} )
141
144
) ;
@@ -145,6 +148,7 @@ describe('Logger E2E - Advanced uses', () => {
145
148
expect . objectContaining ( {
146
149
level : 'ERROR' ,
147
150
message : 'Uncaught error detected, flushing log buffer before exit' ,
151
+ cold_start : false ,
148
152
correlation_id : correlationId ,
149
153
error : expect . objectContaining ( {
150
154
name : 'Error' ,
0 commit comments