Package io.opentelemetry.context
Interface ContextStorageProvider
public interface ContextStorageProvider
A Java SPI (Service Provider Interface) to allow replacing the default
ContextStorage.
This can be useful if, for example, you want to store OpenTelemetry Context in another
context propagation system. For example, the returned ContextStorage could delegate to
methods in
com.linecorp.armeria.common.RequestContext,
io.grpc.context.Context, or
org.eclipse.microprofile.context.ThreadContext
if you are already using one of those systems in your application. Then you would not have to
use methods like Context.wrap(Executor) and can use your current system instead.
-
Method Summary
-
Method Details
-
get
ContextStorage get()Returns theContextStorageto use to storeContext.
-