Skip to content

Tracing Lettuce, Command Duration - What does it really measure? #2981

Answered by tishun
SimoneGiusso asked this question in Q&A
Discussion options

You must be logged in to vote

Hope this late answer will help.

There are quite some unknowns about your deployment for me to answer with confidence. Each of these span reports trace the execution of a single command. It starts the trace when the command is issued

public class CommandHandler extends ChannelDuplexHandler implements HasQueuedCommands {
    ...
    private void attachTracing(ChannelHandlerContext ctx, RedisCommand<?, ?, ?> command) {
    ...

... and then ends when the response is received by the driver ...

public class BraveTracing implements Tracing {
    ...
        @Override
        public BraveSpan start(RedisCommand<?, ?, ?> command) {
            span.name(command.getType().toString());
            …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SimoneGiusso
Comment options

@tishun
Comment options

@SimoneGiusso
Comment options

@tishun
Comment options

Answer selected by SimoneGiusso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants