Java Tracing Support

Is it safe to use ThreadLocal inside client interceptors?

It should be in activity interceptor. Give it a shot and see if it works. In Workflow code you cannot use it and would have to use
io.temporal.workflow.WorkflowThreadLocal