Fix lettuce testLatestDeps
MODIFY
instrumentation/lettuce/lettuce-5.1/testing/src/main/groovy/io/opentelemetry/instrumentation/lettuce/v5_1/AbstractLettuceSyncClientTest.groovy
instrumentation/lettuce/lettuce-5.1/testing/src/main/groovy/io/opentelemetry/instrumentation/lettuce/v5_1/AbstractLettuceSyncClientTest.groovy
@@ -447,15 +447,14 @@ abstract class AbstractLettuceSyncClientTest extends InstrumentationSpecificatio
"$SemanticAttributes.DB_SYSTEM" "redis"
"$SemanticAttributes.DB_STATEMENT" "DEBUG SEGFAULT"
}
+ if (!Boolean.getBoolean("testLatestDeps")) {
+ // these are no longer recorded since Lettuce 6.1.6
event(0) {
eventName "redis.encode.start"
}
event(1) {
eventName "redis.encode.end"
}
- if (Boolean.getBoolean("testLatestDeps")) {
- // Seems to only be recorded with Lettuce 6+
- errorEvent(RedisException, "Connection disconnected", 2)
}
}
}

Fix lettuce testLatestDeps (#5079)