Sync docs from master to gh-pages

This commit is contained in:
Marcin Grzejszczak
2016-03-04 19:35:08 +01:00
parent 581eb0b644
commit fc66a8f882

View File

@@ -994,20 +994,20 @@ Let’s assume that the parent of a span is in one thread and you want to st
<div class="content">
<pre class="highlight"><code class="language-java" data-lang="java">// let's assume that we're in a thread Y and we've received
// the `initialSpan` from thread X. `initialSpan` will be the parent
// of the `joinedSpan`
Span joinedSpan = this.tracer.createSpan("calculateCommission", initialSpan);
// of the `newSpan`
Span newSpan = this.tracer.createSpan("calculateCommission", initialSpan);
try {
// ...
// You can tag a span
this.tracer.addTag("commissionValue", commissionValue);
// ...
// You can log an event on a span
joinedSpan.logEvent("commissionCalculated");
newSpan.logEvent("commissionCalculated");
} finally {
// Once done remember to close the span. This will allow collecting
// the span to send it to Zipkin. The tags and events set on the
// joinedSpan will not be present on the parent
this.tracer.close(joinedSpan);
// newSpan will not be present on the parent
this.tracer.close(newSpan);
}</code></pre>
</div>
</div>
@@ -1253,7 +1253,7 @@ the number of dropped spans will get increased.</p>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2016-03-04 14:10:27 CET
Last updated 2016-03-04 19:29:15 CET
</div>
</div>
</body>