
io.lettuce.core.tracing.TraceContextProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
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 reactor.core.publisher.Mono;
/**
* Interface to obtain a {@link TraceContext} allowing propagation of {@link Tracer.Span} {@link TraceContext}s across threads.
*
* @author Mark Paluch
* @since 5.1
*/
@FunctionalInterface
public interface TraceContextProvider {
/**
* @return the {@link TraceContext}.
*/
TraceContext getTraceContext();
/**
* @return the {@link TraceContext}.
*/
default Mono getTraceContextLater() {
return Mono.justOrEmpty(getTraceContext());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy