Skip to content

Commit 4a29cfa

Browse files
committed
fix(tracing): avoid mutating caller exception in CompositeTracer operationFailed
1 parent ba438e8 commit 4a29cfa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/tracing/CompositeTracer.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ public void operationFailed(Throwable error) {
129129
try {
130130
scope = inScope();
131131
} catch (RuntimeException e) {
132-
if (error != null && error != e) {
133-
error.addSuppressed(e);
134-
}
132+
// Ignore to prevent disrupting the lifecycle notification
135133
}
136134
try (Scope s = scope) {
137135
for (int i = children.size() - 1; i >= 0; i--) {

0 commit comments

Comments
 (0)