Closed kirenjolly closed 5 years ago
@devinsba @llinder Please Correct me if i am wrong. Because this function(init
) is what we are using as a workaround for context propagation in ratpack promises and async calls
can you raise a pull request? it looks like you know where the problem might be
basically if you can put a test that fails until a change is made.. and also that change. it will be a great way of unblocking yourself :P
Yeah i will create a test for both the cases and raise a PR for that.
init
function in TracingPropagationExecInitializer is trying to getHttpTracing.class
from the execution object i pass but instead it shouldmaybeGet(TraceContextHolder.class)
. Since in my registry entries only this is present.RegistryEntry{type=ratpack.zipkin.internal.RatpackCurrentTraceContext$TraceContextHolder, value=ratpack.zipkin.internal.RatpackCurrentTraceContext$TraceContextHolder@6139672b}
. Hence httpTracing is always null ininit
.So
init
can't be used for manual setting of TraceContext on passing the currentExecution
because at that pointRatpackCurrentTraceContext$TraceContextHolder
will be having theCurrentTraceContext
and notHttpTracing.class