1.增加新的API说明

This commit is contained in:
wusheng 2015-12-01 21:04:17 +08:00
parent b1bb229ace
commit 667130432c
1 changed files with 7 additions and 0 deletions

View File

@ -148,6 +148,13 @@ public class XXXDBTracingDriver extends TracingDriver {
<url-patternr>/request-uri</url-patternr>
&lt;/filter-mappingr&gt;</pre>
<h3>
<a id="useInHttpClient" class="anchor" aria-hidden="true"><span class="octicon octicon-link"></span></a>如何通过HttpClient追踪HTTP调用
</h3>
<p>使用SWTracingHttpClient封装所需的httpClient此httpClient所有调用都会被监控</p>
<pre>HttpClient httpclient = new SWTracingHttpClient(new DefaultHttpClient());</pre>
<p>上下文将被存储在http request head默认名称和SkyWalkingFilter保持一致。如果使用dubbox的rest提供的http请求请使用方法重载</p>
<pre>HttpClient httpclient = new SWTracingHttpClient(new DefaultHttpClient(), "");</pre>
<footer class="site-footer">
<span class="site-footer-owner"><a href="http://wu-sheng.github.io/sky-walking">Sky Walking</a> is maintained by <a href="https://github.com/wu-sheng">吴晟</a><a href="https://github.com/ascrutae">张鑫</a><a href="https://github.com/tanzhen84">谭真</a>.</span>