File tree Expand file tree Collapse file tree 3 files changed +11
-19
lines changed
dd-java-agent/instrumentation/redisson
redisson-2.0.0/src/test/groovy
redisson-2.3.0/src/test/groovy
redisson-3.10.3/src/test/groovy Expand file tree Collapse file tree 3 files changed +11
-19
lines changed Original file line number Diff line number Diff line change 1
- import static datadog.trace.agent.test.utils.TraceUtils.runUnderTrace
2
1
import static datadog.trace.api.config.TraceInstrumentationConfig.DB_CLIENT_HOST_SPLIT_BY_INSTANCE
3
- import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.activeSpan
4
2
5
3
import com.redis.testcontainers.RedisContainer
6
4
import com.redis.testcontainers.RedisServer
@@ -54,17 +52,15 @@ abstract class RedissonClientTest extends VersionedNamingTestBase {
54
52
}
55
53
56
54
def setup () {
57
- def cleanupSpan = runUnderTrace(" cleanup" ) {
58
- activeSpan()
59
- }
60
- TEST_WRITER . waitUntilReported(cleanupSpan)
61
55
TEST_WRITER . start()
62
56
}
63
57
64
58
def cleanup () {
65
- RedisConnection conn = lowLevelRedisClient. connect()
66
- conn. sync(RedisCommands . FLUSHDB )
67
- conn. closeAsync(). await()
59
+ try (def suppressScope = TEST_TRACER . muteTracing()) {
60
+ RedisConnection conn = lowLevelRedisClient. connect()
61
+ conn. sync(RedisCommands . FLUSHDB )
62
+ conn. closeAsync(). await()
63
+ }
68
64
}
69
65
70
66
def " bucket set command" () {
Original file line number Diff line number Diff line change @@ -53,15 +53,13 @@ abstract class RedissonClientTest extends VersionedNamingTestBase {
53
53
}
54
54
55
55
def setup () {
56
- def cleanupSpan = runUnderTrace(" cleanup" ) {
57
- activeSpan()
58
- }
59
- TEST_WRITER . waitUntilReported(cleanupSpan)
60
56
TEST_WRITER . start()
61
57
}
62
58
63
59
def cleanup () {
64
- redissonClient. getKeys(). flushdb()
60
+ try (def suppressScope = TEST_TRACER . muteTracing()) {
61
+ redissonClient. getKeys(). flushdb()
62
+ }
65
63
}
66
64
67
65
def " bucket set command" () {
Original file line number Diff line number Diff line change @@ -47,15 +47,13 @@ abstract class RedissonClientTest extends VersionedNamingTestBase {
47
47
}
48
48
49
49
def setup () {
50
- def cleanupSpan = runUnderTrace(" cleanup" ) {
51
- activeSpan()
52
- }
53
- TEST_WRITER . waitUntilReported(cleanupSpan)
54
50
TEST_WRITER . start()
55
51
}
56
52
57
53
def cleanup () {
58
- redissonClient. getKeys(). flushdb()
54
+ try (def suppressScope = TEST_TRACER . muteTracing()) {
55
+ redissonClient. getKeys(). flushdb()
56
+ }
59
57
}
60
58
def " bucket set command" () {
61
59
when :
You can’t perform that action at this time.
0 commit comments