Skip to content

Commit dcbaffa

Browse files
robert3005bulldozer-bot[bot]
authored andcommitted
Don't use deprecated Futures#addCallback method (#78)
## Before this PR tracing-java doesn't work with guava 27 ## After this PR tracing-java works with guava 27
1 parent b75b467 commit dcbaffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracing/src/main/java/com/palantir/tracing/AsyncSpanObserver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void onFailure(Throwable error) {
7373
log.trace("Failed to notify observer", error);
7474
numInflights.decrementAndGet();
7575
}
76-
});
76+
}, MoreExecutors.directExecutor());
7777
} else {
7878
log.trace("Failed to notify span observer since the maximum number of allowed concurrent observations was "
7979
+ "exceeded", SafeArg.of("maxInflights", maxInflights));

0 commit comments

Comments
 (0)