Class JedisConnectionInstrumentation.SendCommandAdvice

java.lang.Object
io.opentelemetry.javaagent.instrumentation.jedis.v4_0.JedisConnectionInstrumentation.SendCommandAdvice
Enclosing class:
JedisConnectionInstrumentation

public static class JedisConnectionInstrumentation.SendCommandAdvice extends Object
  • Constructor Details

    • SendCommandAdvice

      public SendCommandAdvice()
  • Method Details

    • onEnter

      @OnMethodEnter(suppress=java.lang.Throwable.class) public static void onEnter(@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(@FieldValue("socket") Socket socket, @Thrown Throwable throwable, @Local("otelJedisRequest") JedisRequest request, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)