Class JedisConnectionInstrumentation.SendCommand2Advice
java.lang.Object
io.opentelemetry.javaagent.instrumentation.jedis.v4_0.JedisConnectionInstrumentation.SendCommand2Advice
- Enclosing class:
JedisConnectionInstrumentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonEnter(redis.clients.jedis.CommandArguments command, JedisRequest request, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope) static voidstopSpan(Socket socket, Throwable throwable, JedisRequest request, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
-
Constructor Details
-
SendCommand2Advice
public SendCommand2Advice()
-
-
Method Details
-
onEnter
@OnMethodEnter(suppress=java.lang.Throwable.class) public static void onEnter(@Argument(0) redis.clients.jedis.CommandArguments command, @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)
-