Skip to content

Commit

Permalink
Add instrumentation support for lettuce 6.5.0 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
IshikaDawda committed Dec 13, 2024
1 parent 1320c15 commit 5b43ea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions instrumentation-security/lettuce-5.0/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":newrelic-security-api"))
implementation("com.newrelic.agent.java:newrelic-api:${nrAPIVersion}")
implementation("com.newrelic.agent.java:newrelic-weaver-api:${nrAPIVersion}")
implementation group: 'io.lettuce', name: 'lettuce-core', version: '5.0.3.RELEASE'
implementation ("io.lettuce:lettuce-core:5.0.3.RELEASE")
testImplementation('org.testcontainers:testcontainers:1.20.1')
}

Expand All @@ -13,7 +13,7 @@ jar {
}

verifyInstrumentation {
passesOnly 'io.lettuce:lettuce-core:[5.0.0.RELEASE,6.5.0.RELEASE)'
passesOnly 'io.lettuce:lettuce-core:[5.0.0.RELEASE,)'
excludeRegex '.*(RC|M).*'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void registerExitOperation(boolean isProcessingAllowed, com.newrelic.api

private <T> AbstractOperation preprocessSecurityHook(RedisCommand_Instrumentation<K,V,T> cmd, String methodDispatch) {
try {
String type = cmd.getType().name();
String type = cmd.getType().toString();
CommandArgs_Instrumentation commandArgs = cmd.getArgs();
List<Object> arguments = new ArrayList<>();
for(int i=0 ; i<commandArgs.count(); i++){
Expand Down

0 comments on commit 5b43ea4

Please sign in to comment.