Closed takezoe closed 7 years ago
so we benchmark the brave AsyncReporter and finish can add a microsecond encoding overhead (but no I/O as that's in a separate thread). My concern with Future'ing is that the defense might cost as much as the overhead we are looking to avoid.
@adriancole Thanks, I got completely. I will remove Future simply.
@takezoe OK, good. Then the method returned Future
is all it depends on the execution context provided by and used for tracing purposes, right?
@shimamoto By this fix, the finish timestamp delay is resolved in trace()
, but traceFuture()
and traceWS()
still have possibility of delay because Future.onComplete()
callback is called asynchronously. This timing depends on the executionContext
which is given by concrete class of ZipkinTraceServiceLike
as you say.
@takezoe I got it.
fixes #15