All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lettuce.core.tracing.LettuceObservationConvention Maven / Gradle / Ivy

Go to download

Advanced and thread-safe Java Redis client for synchronous, asynchronous, and reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs and much more.

The newest version!
package io.lettuce.core.tracing;

import io.micrometer.observation.Observation;
import io.micrometer.observation.ObservationConvention;

/**
 * {@link ObservationConvention} for {@link LettuceObservationContext}.
 *
 * @author Mark Paluch
 * @since 6.3
 */
public interface LettuceObservationConvention extends ObservationConvention {

    @Override
    default boolean supportsContext(Observation.Context context) {
        return context instanceof LettuceObservationContext;
    }

    /**
     * @return whether to attach the full command into the trace. Use this flag with caution as sensitive arguments will be
     *         captured in the observation spans and metric tags.
     */
    boolean includeCommandArgsInSpanTags();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy