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