Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class RequestCorrelation {
public static final String CORRELATION_ID = "correlationId";
private static final ThreadLocal<String> id = new ThreadLocal<String>();
public static String getId() { return id.get(); }
public static void setId(String correlationId) { id.set(correlationId); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment