Class LettuceAsyncCommandsInstrumentation.DispatchAdvice
java.lang.Object
io.opentelemetry.javaagent.instrumentation.lettuce.v4_0.LettuceAsyncCommandsInstrumentation.DispatchAdvice
- Enclosing class:
- LettuceAsyncCommandsInstrumentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonEnter(com.lambdaworks.redis.protocol.RedisCommand<?, ?, ?> command, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope) static voidonExit(com.lambdaworks.redis.protocol.RedisCommand<?, ?, ?> command, Throwable throwable, com.lambdaworks.redis.protocol.AsyncCommand<?, ?, ?> asyncCommand, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
-
Constructor Details
-
DispatchAdvice
public DispatchAdvice()
-
-
Method Details
-
onEnter
@OnMethodEnter(suppress=java.lang.Throwable.class) public static void onEnter(@Argument(0) com.lambdaworks.redis.protocol.RedisCommand<?, ?, ?> command, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope) -
onExit
@OnMethodExit(onThrowable=java.lang.Throwable.class, suppress=java.lang.Throwable.class) public static void onExit(@Argument(0) com.lambdaworks.redis.protocol.RedisCommand<?, ?, ?> command, @Thrown Throwable throwable, @Return com.lambdaworks.redis.protocol.AsyncCommand<?, ?, ?> asyncCommand, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)
-