Author: buildbot
Date: Sat Sep 26 13:47:46 2015
New Revision: 966902
Log:
Production update by buildbot for cxf
Modified:
websites/production/cxf/content/cache/docs.pageCache
websites/production/cxf/content/docs/using-apache-htrace.html
Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/cxf/content/docs/using-apache-htrace.html
==============================================================================
--- websites/production/cxf/content/docs/using-apache-htrace.html (original)
+++ websites/production/cxf/content/docs/using-apache-htrace.html Sat Sep 26
13:47:46 2015
@@ -117,11 +117,11 @@ Apache CXF -- Using Apache HTrace
<!-- Content -->
<div class="wiki-content">
<div id="ConfluenceContent"><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1443055616092 {padding: 0px;}
-div.rbtoc1443055616092 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1443055616092 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1443275232486 {padding: 0px;}
+div.rbtoc1443275232486 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1443275232486 li {margin-left: 0px;padding-left: 0px;}
-/*]]>*/</style></p><div class="toc-macro rbtoc1443055616092">
+/*]]>*/</style></p><div class="toc-macro rbtoc1443275232486">
<ul class="toc-indentation"><li><a shape="rect"
href="#UsingApacheHTrace-Overview">Overview</a></li><li><a shape="rect"
href="#UsingApacheHTrace-DistributedTracinginNutshell">Distributed Tracing in
Nutshell</a></li><li><a shape="rect"
href="#UsingApacheHTrace-DistributedTracinginApacheCXF">Distributed Tracing in
Apache CXF</a></li><li><a shape="rect"
href="#UsingApacheHTrace-ConfiguringClientconfigure.client">Configuring
Client</a>
<ul class="toc-indentation"><li><a shape="rect"
href="#UsingApacheHTrace-Configuringtracingheadernames">Configuring tracing
header names</a></li></ul>
</li><li><a shape="rect"
href="#UsingApacheHTrace-ConfiguringServerconfigure.server">Configuring
Server</a>
@@ -321,7 +321,14 @@ sf.getInInterceptors().add(new HTraceSta
sf.getOutInterceptors().add(new HTraceStopInterceptor(Phase.PRE_MARSHAL));
...
sf.create();</pre>
-</div></div><div class="confluence-information-macro
confluence-information-macro-information"><span class="aui-icon aui-icon-small
aui-iconfont-info confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>Configuring right phases for
interceptors is very important. The recommended phase for in-interceptor is
<strong>PRE_INVOKE</strong> while for out-interceptor is
<strong>PRE_MARSHAL</strong>. If wrong phases are being used, response or/and
request headers could be ignored or not processed.</p></div></div><p>TODO:
Client side</p><h1 id="UsingApacheHTrace-FutureWork">Future Work</h1><p>The <a
shape="rect" href="http://cxf.apache.org/">Apache CXF</a> is very proud to
offer <a shape="rect" class="external-link"
href="http://htrace.incubator.apache.org/index.html">Apache HTrace</a>
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 commitmen
t to evolve not only <a shape="rect" class="external-link"
href="http://htrace.incubator.apache.org/index.html">Apache HTrace</a>
integration, but the distributed tracing support in general.</p></div>
+</div></div><div class="confluence-information-macro
confluence-information-macro-information"><span class="aui-icon aui-icon-small
aui-iconfont-info confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>Configuring right phases for
interceptors is very important. The recommended phase for in-interceptor is
<strong>PRE_INVOKE</strong> while for out-interceptor is
<strong>PRE_MARSHAL</strong>. If wrong phases are being used, response or/and
request headers could be ignored or not processed.</p></div></div><p>Similarly
to the server-side, client-side needs own set of out/in interceptors,
<strong>HTraceClientStartInterceptor</strong> and
<strong>HTraceClientStopInterceptor</strong>. Please notice the difference from
server-side: <strong>HTraceClientStartInterceptor</strong> becomes
out-interceptor while <strong>HTraceClientStopInterceptor</strong> becomes
in-interceptor. For example:</p><div class="code panel pdl"
style="border-width: 1px;"><div cl
ass="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default"
style="font-size:12px;">JaxWsProxyFactoryBean factory = new
JaxWsProxyFactoryBean();
+...
+factory.getOutInterceptors().add(new HTraceClientStartInterceptor(sampler));
+factory.getInInterceptors().add(new HTraceClientStopInterceptor());
+...
+factory.create();</pre>
+</div></div><h1 id="UsingApacheHTrace-FutureWork">Future Work</h1><p>The <a
shape="rect" href="http://cxf.apache.org/">Apache CXF</a> is very proud to
offer <a shape="rect" class="external-link"
href="http://htrace.incubator.apache.org/index.html">Apache HTrace</a>
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 <a shape="rect" class="external-link"
href="http://htrace.incubator.apache.org/index.html">Apache HTrace</a>
integration, but the distributed tracing support in general.</p></div>
</div>
<!-- Content -->
</td>