Class InstrumentationPoints
java.lang.Object
io.opentelemetry.javaagent.instrumentation.lettuce.v4_0.InstrumentationPoints
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidafterCommand(com.lambdaworks.redis.protocol.RedisCommand<?, ?, ?> command, io.opentelemetry.context.Context context, Throwable throwable, com.lambdaworks.redis.protocol.AsyncCommand<?, ?, ?> asyncCommand) static booleanexpectsResponse(com.lambdaworks.redis.protocol.RedisCommand<?, ?, ?> command) Determines whether a redis command should finish its relevant span early (as soon as tags are added and the command is executed) because these commands have no return values/call backs, so we must close the span early in order to provide info for the users.
-
Method Details
-
afterCommand
public static void afterCommand(com.lambdaworks.redis.protocol.RedisCommand<?, ?, ?> command, io.opentelemetry.context.Context context, Throwable throwable, com.lambdaworks.redis.protocol.AsyncCommand<?, ?, ?> asyncCommand) -
expectsResponse
public static boolean expectsResponse(com.lambdaworks.redis.protocol.RedisCommand<?, ?, ?> command) Determines whether a redis command should finish its relevant span early (as soon as tags are added and the command is executed) because these commands have no return values/call backs, so we must close the span early in order to provide info for the users.- Returns:
- false if the span should finish early (the command will not have a return value)
-