Started the manually created span

This commit is contained in:
Marcin Grzejszczak
2018-01-29 14:09:01 +01:00
parent bc59fcc862
commit 4682920675

View File

@@ -139,7 +139,7 @@ class AClass {
public String manualSpan() {
Span manual = this.tracer.nextSpan().name("span-name");
try (Tracer.SpanInScope ws = this.tracer.withSpanInScope(manual)) {
try (Tracer.SpanInScope ws = this.tracer.withSpanInScope(manual.start())) {
return this.anotherClass.continuedSpan();
} finally {
manual.finish();