Class JedisConnectionInstrumentation.SendCommandAdvice
java.lang.Object
io.opentelemetry.javaagent.instrumentation.jedis.v3_0.JedisConnectionInstrumentation.SendCommandAdvice
- Enclosing class:
- JedisConnectionInstrumentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonEnter(redis.clients.jedis.Connection connection, redis.clients.jedis.commands.ProtocolCommand command, byte[][] args, JedisRequest request, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope) static voidstopSpan(Throwable throwable, JedisRequest request, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
-
Constructor Details
-
SendCommandAdvice
public SendCommandAdvice()
-
-
Method Details
-
onEnter
@OnMethodEnter(suppress=java.lang.Throwable.class) public static void onEnter(@This redis.clients.jedis.Connection connection, @Argument(0) redis.clients.jedis.commands.ProtocolCommand command, @Argument(1) byte[][] args, @Local("otelJedisRequest") JedisRequest request, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope) -
stopSpan
@OnMethodExit(onThrowable=java.lang.Throwable.class, suppress=java.lang.Throwable.class) public static void stopSpan(@Thrown Throwable throwable, @Local("otelJedisRequest") JedisRequest request, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)
-