This commit is contained in:
Guillaume Polaert 2017-08-08 09:22:22 +02:00
parent 0d79f0cf08
commit ab5926afe4
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ public class ExampleWithLoggingWriter {
tracer.addServiceInfo(new Service("api-intake", "spark", Service.AppType.CACHE)); tracer.addServiceInfo(new Service("api-intake", "spark", Service.AppType.CACHE));
final Span parent = final Span parent =
tracer.buildSpan("fetch.backend").withServiceName("api-intake").startManual(); tracer.buildSpan("fetch.backend").withServiceName("api-intake").startManual();
parent.setBaggageItem("scope-id", "a-1337"); parent.setBaggageItem("scope-id", "a-1337");
@ -20,9 +20,9 @@ public class ExampleWithLoggingWriter {
final Span child = final Span child =
tracer tracer
.buildSpan("delete.resource") .buildSpan("delete.resource")
.asChildOf(parent) .asChildOf(parent)
.withResourceName("delete") .withResourceName("delete")
.startManual(); .startManual();
Thread.sleep(100); Thread.sleep(100);