@@ -94,7 +94,7 @@ class SentryJCacheWrapperTest {
9494 assertEquals(mapOf (" k1" to " v1" ), result)
9595 assertEquals(1 , tx.spans.size)
9696 val span = tx.spans.first()
97- assertEquals(" cache.get " , span.operation)
97+ assertEquals(" cache.getAll " , span.operation)
9898 assertEquals(" testCache" , span.description)
9999 assertEquals(true , span.getData(SpanDataConvention .CACHE_HIT_KEY ))
100100 val cacheKeys = span.getData(SpanDataConvention .CACHE_KEY_KEY ) as List <* >
@@ -144,7 +144,7 @@ class SentryJCacheWrapperTest {
144144
145145 assertEquals(" oldValue" , result)
146146 assertEquals(1 , tx.spans.size)
147- assertEquals(" cache.put " , tx.spans.first().operation)
147+ assertEquals(" cache.getAndPut " , tx.spans.first().operation)
148148 assertEquals(" getAndPut" , tx.spans.first().getData(" db.operation.name" ))
149149 }
150150
@@ -161,7 +161,7 @@ class SentryJCacheWrapperTest {
161161 verify(delegate).putAll(entries)
162162 assertEquals(1 , tx.spans.size)
163163 val span = tx.spans.first()
164- assertEquals(" cache.put " , span.operation)
164+ assertEquals(" cache.putAll " , span.operation)
165165 assertEquals(" testCache" , span.description)
166166 val cacheKeys = span.getData(SpanDataConvention .CACHE_KEY_KEY ) as List <* >
167167 assertTrue(cacheKeys.containsAll(listOf (" k1" , " k2" )))
@@ -182,7 +182,7 @@ class SentryJCacheWrapperTest {
182182 verify(delegate).putIfAbsent(" myKey" , " myValue" )
183183 assertEquals(1 , tx.spans.size)
184184 val span = tx.spans.first()
185- assertEquals(" cache.put " , span.operation)
185+ assertEquals(" cache.putIfAbsent " , span.operation)
186186 assertEquals(SpanStatus .OK , span.status)
187187 assertEquals(listOf (" myKey" ), span.getData(SpanDataConvention .CACHE_KEY_KEY ))
188188 assertEquals(" putIfAbsent" , span.getData(" db.operation.name" ))
@@ -202,7 +202,7 @@ class SentryJCacheWrapperTest {
202202 verify(delegate).replace(" myKey" , " old" , " new" )
203203 assertEquals(1 , tx.spans.size)
204204 val span = tx.spans.first()
205- assertEquals(" cache.put " , span.operation)
205+ assertEquals(" cache.replace " , span.operation)
206206 assertEquals(SpanStatus .OK , span.status)
207207 assertEquals(" replace" , span.getData(" db.operation.name" ))
208208 }
@@ -219,7 +219,7 @@ class SentryJCacheWrapperTest {
219219 verify(delegate).replace(" myKey" , " value" )
220220 assertEquals(1 , tx.spans.size)
221221 val span = tx.spans.first()
222- assertEquals(" cache.put " , span.operation)
222+ assertEquals(" cache.replace " , span.operation)
223223 assertEquals(SpanStatus .OK , span.status)
224224 assertEquals(" replace" , span.getData(" db.operation.name" ))
225225 }
@@ -238,7 +238,7 @@ class SentryJCacheWrapperTest {
238238 verify(delegate).getAndReplace(" myKey" , " newValue" )
239239 assertEquals(1 , tx.spans.size)
240240 val span = tx.spans.first()
241- assertEquals(" cache.put " , span.operation)
241+ assertEquals(" cache.getAndReplace " , span.operation)
242242 assertEquals(SpanStatus .OK , span.status)
243243 assertEquals(" getAndReplace" , span.getData(" db.operation.name" ))
244244 }
@@ -289,7 +289,7 @@ class SentryJCacheWrapperTest {
289289
290290 assertEquals(" value" , result)
291291 assertEquals(1 , tx.spans.size)
292- assertEquals(" cache.remove " , tx.spans.first().operation)
292+ assertEquals(" cache.getAndRemove " , tx.spans.first().operation)
293293 assertEquals(" getAndRemove" , tx.spans.first().getData(" db.operation.name" ))
294294 }
295295
@@ -306,7 +306,7 @@ class SentryJCacheWrapperTest {
306306 verify(delegate).removeAll(keys)
307307 assertEquals(1 , tx.spans.size)
308308 val span = tx.spans.first()
309- assertEquals(" cache.remove " , span.operation)
309+ assertEquals(" cache.removeAll " , span.operation)
310310 assertEquals(" testCache" , span.description)
311311 assertEquals(" removeAll" , span.getData(" db.operation.name" ))
312312 }
@@ -322,7 +322,7 @@ class SentryJCacheWrapperTest {
322322
323323 verify(delegate).removeAll()
324324 assertEquals(1 , tx.spans.size)
325- assertEquals(" cache.flush " , tx.spans.first().operation)
325+ assertEquals(" cache.removeAll " , tx.spans.first().operation)
326326 assertEquals(" removeAll" , tx.spans.first().getData(" db.operation.name" ))
327327 }
328328
@@ -338,7 +338,7 @@ class SentryJCacheWrapperTest {
338338 verify(delegate).clear()
339339 assertEquals(1 , tx.spans.size)
340340 val span = tx.spans.first()
341- assertEquals(" cache.flush " , span.operation)
341+ assertEquals(" cache.clear " , span.operation)
342342 assertEquals(SpanStatus .OK , span.status)
343343 assertNull(span.getData(SpanDataConvention .CACHE_KEY_KEY ))
344344 assertEquals(" clear" , span.getData(" db.operation.name" ))
@@ -357,7 +357,7 @@ class SentryJCacheWrapperTest {
357357
358358 assertEquals(" result" , result)
359359 assertEquals(1 , tx.spans.size)
360- assertEquals(" cache.get " , tx.spans.first().operation)
360+ assertEquals(" cache.invoke " , tx.spans.first().operation)
361361 assertEquals(" invoke" , tx.spans.first().getData(" db.operation.name" ))
362362 }
363363
@@ -376,7 +376,7 @@ class SentryJCacheWrapperTest {
376376
377377 assertEquals(resultMap, result)
378378 assertEquals(1 , tx.spans.size)
379- assertEquals(" cache.get " , tx.spans.first().operation)
379+ assertEquals(" cache.invokeAll " , tx.spans.first().operation)
380380 assertEquals(" invokeAll" , tx.spans.first().getData(" db.operation.name" ))
381381 }
382382
0 commit comments