Skip to content

Commit 0c40a44

Browse files
author
Mateusz Rzeszutek
authored
Fix serializing key to string in Lettuce instrumentation (#9347)
1 parent f37386b commit 0c40a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/lettuce/lettuce-5.1/library/src/main/java/io/lettuce/core/protocol/OtelCommandArgsUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static List<String> getCommandArgs(CommandArgs<?, ?> commandArgs) {
3636
private static String getArgValue(StringCodec stringCodec, SingularArgument argument) {
3737
if (argument instanceof KeyArgument) {
3838
KeyArgument keyArg = (KeyArgument) argument;
39-
return stringCodec.decodeValue(keyArg.codec.encodeValue(keyArg.key));
39+
return stringCodec.decodeKey(keyArg.codec.encodeKey(keyArg.key));
4040
}
4141
if (argument instanceof ValueArgument) {
4242
ValueArgument valueArg = (ValueArgument) argument;

0 commit comments

Comments
 (0)