aldex32 commented on issue #367: [CXF-7608] Propagate trace ids as it lets log 
correlation to be consi?
URL: https://github.com/apache/cxf/pull/367#issuecomment-357881668
 
 
   Hi @reta , I tried to do an integration test in the test class you mentioned 
above but didn't succeeded.
   What I did is:
   * Created a server with brave feature with sampling `NEVER_SAMPLER`
   * Invoke one of `bookstore` API
   * Then created a `POST_INVOKE` interceptor which would get the request 
attribute `org.apache.cxf.tracing.brave.span` and check if the 
`TraceScope#SpanInScope` is in `AbstractTracingProvider.TraceScopeHolder`.
   The issue I faced is that I cannot cast 
`((HttpServletRequest)message.get("HTTP.REQUEST")).getAttribute("org.apache.cxf.tracing.brave.span")`
 to `TraceScopeHolder` since it is a protected and then I cannot assert on it.
   
   Do you have any idea how should I test it?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to