We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2066eca commit f1eb2e2Copy full SHA for f1eb2e2
2 files changed
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 19c22a6e59df87e722b6203954ce1fc15d39cefd
+refs/heads/master: 8d646838b341cb8e41155a5e41ac77265356b6f8
3
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
4
refs/heads/gh-pages: 6daca92127d91b7c2c99490080ecf8a13fa94cde
5
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
trunk/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