|
20 | 20 | import io.opentelemetry.instrumentation.testing.internal.AutoCleanupExtension; |
21 | 21 | import io.opentelemetry.instrumentation.testing.junit.AgentInstrumentationExtension; |
22 | 22 | import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension; |
| 23 | +import io.opentelemetry.sdk.trace.data.SpanData; |
23 | 24 | import io.opentelemetry.semconv.SemanticAttributes; |
| 25 | +import java.util.List; |
24 | 26 | import java.util.Map; |
25 | 27 | import org.junit.jupiter.api.AfterAll; |
26 | 28 | import org.junit.jupiter.api.BeforeAll; |
27 | 29 | import org.junit.jupiter.api.Test; |
28 | 30 | import org.junit.jupiter.api.extension.RegisterExtension; |
| 31 | +import org.slf4j.Logger; |
| 32 | +import org.slf4j.LoggerFactory; |
29 | 33 | import org.testcontainers.containers.GenericContainer; |
30 | 34 | import org.testcontainers.utility.DockerImageName; |
31 | 35 |
|
32 | 36 | @SuppressWarnings("deprecation") // until old http semconv are dropped in 2.0 |
33 | 37 | class LettuceSyncClientTest { |
| 38 | + private static final Logger logger = LoggerFactory.getLogger(LettuceSyncClientTest.class); |
34 | 39 |
|
35 | 40 | @RegisterExtension |
36 | 41 | protected static final InstrumentationExtension testing = AgentInstrumentationExtension.create(); |
@@ -85,7 +90,8 @@ static void setUp() { |
85 | 90 | syncCommands.hmset("TESTHM", testHashMap); |
86 | 91 |
|
87 | 92 | // 2 sets + 1 connect trace |
88 | | - testing.waitForTraces(3); |
| 93 | + List<List<SpanData>> traces = testing.waitForTraces(3); |
| 94 | + logger.info("setUp traces {}", traces); |
89 | 95 | testing.clearData(); |
90 | 96 | } |
91 | 97 |
|
|
0 commit comments