Commit 4a6d0577 authored by 杨锐's avatar 杨锐

删除测试log.

parent 8a4e34ae
......@@ -425,14 +425,11 @@ public class BraveAutoConfiguration {
@Around("target(com.dangdang.ddframe.job.api.ElasticJob)")
public Object dynamicTrace(ProceedingJoinPoint pjp) throws Throwable {
log.info("ElasticJobAspect dynamicTrace start.");
Tracer tracer = tracing().tracer();
/* 防止应用层非法使用(上下文中存在span),不生成root span。 */
if (tracer.currentSpan() != null) {
log.info("应用层上下文中存在span.");
return pjp.proceed();
}
log.info("应用层上下文中不存在span.");
brave.Span span = tracer.newTrace();
try (Tracer.SpanInScope ws = tracer.withSpanInScope(span)) {
// note: try-with-resources closes the scope *before* the catch block
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment