Merge branch '2.0.x'
This commit is contained in:
@@ -59,7 +59,7 @@ public class TraceAsyncAspect {
|
||||
span = this.tracer.nextSpan();
|
||||
}
|
||||
span = span.name(spanName);
|
||||
try(Tracer.SpanInScope ws = this.tracer.withSpanInScope(span)) {
|
||||
try(Tracer.SpanInScope ws = this.tracer.withSpanInScope(span.start())) {
|
||||
span.tag(CLASS_KEY, pjp.getTarget().getClass().getSimpleName());
|
||||
span.tag(METHOD_KEY, pjp.getSignature().getName());
|
||||
return pjp.proceed();
|
||||
|
||||
@@ -46,5 +46,6 @@ public class TraceAsyncAspectTest {
|
||||
|
||||
BDDAssertions.then(this.reporter.getSpans()).hasSize(1);
|
||||
BDDAssertions.then(this.reporter.getSpans().get(0).name()).isEqualTo("foo-bar");
|
||||
BDDAssertions.then(this.reporter.getSpans().get(0).timestamp()).isPositive();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user