Skip to content

Commit

Permalink
feat: support lettuce cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-myx authored and DanLi39 committed Jan 15, 2024
1 parent 664afac commit 6e14ccc
Show file tree
Hide file tree
Showing 60 changed files with 8,545 additions and 3,775 deletions.
6 changes: 6 additions & 0 deletions arex-instrumentation/redis/arex-lettuce-v5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,11 @@
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.arex</groupId>
<artifactId>arex-common</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import io.arex.inst.extension.ModuleInstrumentation;
import io.arex.inst.extension.TypeInstrumentation;
import io.arex.agent.bootstrap.model.ComparableVersion;

import io.arex.inst.lettuce.v5.cluster.inst.RedisClusterClientInstrumentation;
import io.arex.inst.lettuce.v5.cluster.inst.StatefulRedisClusterConnectionImplInstrumentation;
import io.arex.inst.lettuce.v5.standalone.inst.RedisClientInstrumentation;
import io.arex.inst.lettuce.v5.standalone.inst.StatefulRedisConnectionImplInstrumentation;
import java.util.Arrays;
import java.util.List;

Expand All @@ -21,6 +24,10 @@ public LettuceModuleInstrumentation() {

@Override
public List<TypeInstrumentation> instrumentationTypes() {
return Arrays.asList(new StatefulRedisConnectionImplInstrumentation(), new RedisClientInstrumentation());
return Arrays.asList(
new StatefulRedisConnectionImplInstrumentation(),
new RedisClientInstrumentation(),
new StatefulRedisClusterConnectionImplInstrumentation(),
new RedisClusterClientInstrumentation());
}
}
Loading

0 comments on commit 6e14ccc

Please sign in to comment.