Class InstrumentationPoints

java.lang.Object
io.opentelemetry.javaagent.instrumentation.lettuce.v4_0.InstrumentationPoints

public final class InstrumentationPoints extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    afterCommand(com.lambdaworks.redis.protocol.RedisCommand<?,?,?> command, io.opentelemetry.context.Context context, Throwable throwable, com.lambdaworks.redis.protocol.AsyncCommand<?,?,?> asyncCommand)
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)