@@ -191,7 +191,6 @@ export class NetlifyCacheHandler implements CacheHandler {
191
191
}
192
192
193
193
async get ( ...args : Parameters < CacheHandler [ 'get' ] > ) : ReturnType < CacheHandler [ 'get' ] > {
194
- debugger
195
194
return this . tracer . withActiveSpan ( 'get cache key' , async ( span ) => {
196
195
const [ key , ctx = { } ] = args
197
196
getLogger ( ) . debug ( `[NetlifyCacheHandler.get]: ${ key } ` )
@@ -232,7 +231,10 @@ export class NetlifyCacheHandler implements CacheHandler {
232
231
233
232
case 'ROUTE' :
234
233
case 'APP_ROUTE' : {
235
- span . addEvent ( 'APP_ROUTE' , { lastModified : blob . lastModified , status : blob . value . status } )
234
+ span . addEvent ( blob . value ?. kind , {
235
+ lastModified : blob . lastModified ,
236
+ status : blob . value . status ,
237
+ } )
236
238
237
239
const valueWithoutRevalidate = this . captureRouteRevalidateAndRemoveFromObject ( blob . value )
238
240
@@ -246,7 +248,7 @@ export class NetlifyCacheHandler implements CacheHandler {
246
248
}
247
249
case 'PAGE' :
248
250
case 'PAGES' : {
249
- span . addEvent ( 'PAGE' , { lastModified : blob . lastModified } )
251
+ span . addEvent ( blob . value ?. kind , { lastModified : blob . lastModified } )
250
252
251
253
const { revalidate, ...restOfPageValue } = blob . value
252
254
@@ -258,7 +260,7 @@ export class NetlifyCacheHandler implements CacheHandler {
258
260
}
259
261
}
260
262
case 'APP_PAGE' : {
261
- span . addEvent ( 'APP_PAGE' , { lastModified : blob . lastModified } )
263
+ span . addEvent ( blob . value ?. kind , { lastModified : blob . lastModified } )
262
264
263
265
const { revalidate, rscData, ...restOfPageValue } = blob . value
264
266
0 commit comments