Package dev.restate.sdk.core
Class RestateContextDataProvider
java.lang.Object
dev.restate.sdk.core.RestateContextDataProvider
- All Implemented Interfaces:
org.apache.logging.log4j.core.util.ContextDataProvider
public class RestateContextDataProvider
extends Object
implements org.apache.logging.log4j.core.util.ContextDataProvider
Log4j2
ContextDataProvider
inferring context from HandlerRunner.SYSCALLS_THREAD_LOCAL
.
This is used to propagate the context to the user code, such that log statements from the user will contain the restate logging context variables.
-
Constructor Details
-
RestateContextDataProvider
public RestateContextDataProvider()
-
-
Method Details
-
supplyContextData
- Specified by:
supplyContextData
in interfaceorg.apache.logging.log4j.core.util.ContextDataProvider
-