Skip to content

Commit d7b3b0b

Browse files
authored
Merge pull request #5212 from getsentry/fix/cache-tracing-evict-system-test
fix(samples): [Cache Tracing 22] Fix cache evict system test to match actual span op
2 parents 36b3bf2 + f9831a9 commit d7b3b0b

File tree

9 files changed

+9
-9
lines changed
  • sentry-samples
    • sentry-samples-spring-boot-4-opentelemetry/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-4-otlp/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-4-webflux/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-4/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-jakarta-opentelemetry-noagent/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-jakarta-opentelemetry/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-jakarta/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-webflux-jakarta/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot/src/test/kotlin/io/sentry/systemtest

9 files changed

+9
-9
lines changed

sentry-samples/sentry-samples-spring-boot-4-opentelemetry/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-4-otlp/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-4-webflux/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-4/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-jakarta-opentelemetry-noagent/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-jakarta-opentelemetry/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-jakarta/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-webflux-jakarta/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

0 commit comments

Comments
 (0)