Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Configuring right phases for interceptors is very important. The recommended phase for in-interceptor is PRE_INVOKE while for out-interceptor is PRE_MARSHAL. If wrong phases are being used, response or/and request headers could be ignored or not processed.

...

Similarly to the server-side, client-side needs own set of out/in interceptors, HTraceClientStartInterceptor and HTraceClientStopInterceptor. Please notice the difference from server-side: HTraceClientStartInterceptor becomes out-interceptor while HTraceClientStopInterceptor becomes in-interceptor. For example:

Code Block
java
java
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
...
factory.getOutInterceptors().add(new HTraceClientStartInterceptor(sampler));
factory.getInInterceptors().add(new HTraceClientStopInterceptor());
...

Future Work

The Apache CXF is very proud to offer Apache HTrace integration. At the current stage, it was a conscious decision to keep the minimal API and provide the set of necessary features only. However, there is a strong commitment to evolve not only Apache HTrace integration, but the distributed tracing support in general.