Skip to content

Commit 9055dd5

Browse files
authored
Support lettuce 6.5 (#7876)
1 parent 90483bb commit 9055dd5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dd-java-agent/instrumentation/lettuce-5/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ muzzle {
55
module = "lettuce-core"
66
versions = "[5.0.0.RELEASE,)"
77
assertInverse = true
8-
skipVersions = ["6.5.0.RELEASE"]
98
}
109
}
1110

@@ -23,7 +22,7 @@ dependencies {
2322
testImplementation project(':dd-java-agent:instrumentation:reactive-streams')
2423

2524

26-
latestDepTestImplementation group: 'io.lettuce', name: 'lettuce-core', version: '5.+'
25+
latestDepTestImplementation group: 'io.lettuce', name: 'lettuce-core', version: '+'
2726

2827
tasks.withType(Test).configureEach {
2928
usesService(testcontainersLimit)

dd-java-agent/instrumentation/lettuce-5/src/main/java/datadog/trace/instrumentation/lettuce5/LettuceInstrumentationUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static String getCommandName(final RedisCommand command) {
7070

7171
// get the redis command name (i.e. GET, SET, HMSET, etc)
7272
if (command.getType() != null) {
73-
commandName = command.getType().name().trim();
73+
commandName = command.getType().toString().trim();
7474
}
7575
}
7676
return commandName;

0 commit comments

Comments
 (0)