@@ -136,6 +136,19 @@ describeWithDockerCompose('redis cache auto instrumentation', { workingDirectory
136136 'network.peer.port' : 6383 ,
137137 } ) ,
138138 } ) ,
139+ // DEL
140+ expect . objectContaining ( {
141+ description : 'ioredis-cache:test-key' ,
142+ op : 'cache.remove' ,
143+ origin : redisOrigin ,
144+ data : expect . objectContaining ( {
145+ 'sentry.origin' : redisOrigin ,
146+ 'db.statement' : 'del ioredis-cache:test-key' ,
147+ 'cache.key' : [ 'ioredis-cache:test-key' ] ,
148+ 'network.peer.address' : 'localhost' ,
149+ 'network.peer.port' : 6383 ,
150+ } ) ,
151+ } ) ,
139152 ] ) ,
140153 } ;
141154
@@ -258,6 +271,17 @@ describeWithDockerCompose('redis cache auto instrumentation', { workingDirectory
258271 'cache.key' : [ 'redis-test-key' , 'redis-cache:test-key' , 'redis-cache:unavailable-data' ] ,
259272 } ) ,
260273 } ) ,
274+ // DEL
275+ expect . objectContaining ( {
276+ description : 'redis-cache:test-key' ,
277+ op : 'cache.remove' ,
278+ origin : redisOrigin ,
279+ data : expect . objectContaining ( {
280+ 'sentry.origin' : redisOrigin ,
281+ 'db.statement' : 'DEL redis-cache:test-key' ,
282+ 'cache.key' : [ 'redis-cache:test-key' ] ,
283+ } ) ,
284+ } ) ,
261285 ...batchSpans ,
262286 // a failing command produces a span with an error status
263287 expect . objectContaining ( {
@@ -400,6 +424,17 @@ describeWithDockerCompose('redis cache auto instrumentation', { workingDirectory
400424 'cache.key' : [ 'redis-5-test-key' , 'redis-5-cache:test-key' , 'redis-5-cache:unavailable-data' ] ,
401425 } ) ,
402426 } ) ,
427+ // DEL
428+ expect . objectContaining ( {
429+ description : 'redis-5-cache:test-key' ,
430+ op : 'cache.remove' ,
431+ origin : redisOrigin ,
432+ data : expect . objectContaining ( {
433+ 'sentry.origin' : redisOrigin ,
434+ 'db.statement' : 'DEL redis-5-cache:test-key' ,
435+ 'cache.key' : [ 'redis-5-cache:test-key' ] ,
436+ } ) ,
437+ } ) ,
403438 ...batchSpans ,
404439 // a failing command produces a span with an error status
405440 expect . objectContaining ( {
0 commit comments