Class ExecutionIdUtil
- java.lang.Object
-
- com.google.cloud.functions.invoker.gcf.ExecutionIdUtil
-
public final class ExecutionIdUtil extends Object
A helper class that either fetches a unique execution id from request HTTP headers or generates a random id.
-
-
Constructor Summary
Constructors Constructor Description ExecutionIdUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveExecutionId()Remove mapping from curent thread to request execution idvoidstoreExecutionId(javax.servlet.http.HttpServletRequest request)Add mapping to root logger from current thread id to execution id.
-
-
-
Method Detail
-
storeExecutionId
public void storeExecutionId(javax.servlet.http.HttpServletRequest request)
Add mapping to root logger from current thread id to execution id. This mapping will be used to append the execution id to log lines.
-
removeExecutionId
public void removeExecutionId()
Remove mapping from curent thread to request execution id
-
-