You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by GitBox <gi...@apache.org> on 2018/01/16 08:04:21 UTC

[GitHub] aldex32 commented on issue #367: [CXF-7608] Propagate trace ids as it lets log correlation to be consi?

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:
users@infra.apache.org


With regards,
Apache Git Services