We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19c22a6 commit 8d64683Copy full SHA for 8d64683
1 file changed
google-cloud-logging/src/main/java/com/google/cloud/logging/TraceLoggingEnhancer.java
@@ -38,7 +38,11 @@ public TraceLoggingEnhancer(String prefix) {
38
* @param id The traceID
39
*/
40
public static void setCurrentTraceId(String id) {
41
- traceId.set(id);
+ if (id == null) {
42
+ traceId.remove();
43
+ } else {
44
+ traceId.set(id);
45
+ }
46
}
47
48
/**
0 commit comments