Package io.opentelemetry.context
Interface ContextStorageProvider
-
public interface ContextStorageProviderA Java SPI (Service Provider Interface) to allow replacing the defaultContextStorage. This can be useful if, for example, you want to store OpenTelemetryContextin another context propagation system. For example, the returnedContextStoragecould delegate to methods incom.linecorp.armeria.common.RequestContext,io.grpc.context.Context, ororg.eclipse.microprofile.context.ThreadContextif 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContextStorageget()Returns theContextStorageto use to storeContext.
-
-
-
Method Detail
-
get
ContextStorage get()
Returns theContextStorageto use to storeContext.
-
-