Package dev.restate.sdk.core
Interface RestateGrpcServer.LoggingContextSetter
-
- Enclosing class:
- RestateGrpcServer
public static interface RestateGrpcServer.LoggingContextSetterInterface to abstract setting the logging context variables.In classic multithreaded environments, you can just use
THREAD_LOCAL_INSTANCE, though the caller ofRestateGrpcServermust take care of the cleanup of the thread local map.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINVOCATION_ID_KEYstatic java.lang.StringSERVICE_INVOCATION_STATUSstatic java.lang.StringSERVICE_METHOD_KEYstatic RestateGrpcServer.LoggingContextSetterTHREAD_LOCAL_INSTANCE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetInvocationId(java.lang.String id)voidsetInvocationStatus(java.lang.String invocationStatus)voidsetServiceMethod(java.lang.String serviceMethod)
-
-
-
Field Detail
-
INVOCATION_ID_KEY
static final java.lang.String INVOCATION_ID_KEY
- See Also:
- Constant Field Values
-
SERVICE_METHOD_KEY
static final java.lang.String SERVICE_METHOD_KEY
- See Also:
- Constant Field Values
-
SERVICE_INVOCATION_STATUS
static final java.lang.String SERVICE_INVOCATION_STATUS
- See Also:
- Constant Field Values
-
THREAD_LOCAL_INSTANCE
static final RestateGrpcServer.LoggingContextSetter THREAD_LOCAL_INSTANCE
-
-