Package dev.restate.sdk.core
Class GrpcContextDataProvider
- java.lang.Object
-
- dev.restate.sdk.core.GrpcContextDataProvider
-
- All Implemented Interfaces:
org.apache.logging.log4j.core.util.ContextDataProvider
public class GrpcContextDataProvider extends java.lang.Object implements org.apache.logging.log4j.core.util.ContextDataProviderLog4j2 ContextDataProvider inferring context from the Grpc context.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.
This is based on grpc Context due to the fact that it's the only guaranteed thread local/context we can rely on that is always available in the user code.
-
-
Constructor Summary
Constructors Constructor Description GrpcContextDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>supplyContextData()
-