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

删除测试log.

parent 8a4e34ae
...@@ -425,14 +425,11 @@ public class BraveAutoConfiguration { ...@@ -425,14 +425,11 @@ public class BraveAutoConfiguration {
@Around("target(com.dangdang.ddframe.job.api.ElasticJob)") @Around("target(com.dangdang.ddframe.job.api.ElasticJob)")
public Object dynamicTrace(ProceedingJoinPoint pjp) throws Throwable { public Object dynamicTrace(ProceedingJoinPoint pjp) throws Throwable {
log.info("ElasticJobAspect dynamicTrace start.");
Tracer tracer = tracing().tracer(); Tracer tracer = tracing().tracer();
/* 防止应用层非法使用(上下文中存在span),不生成root span。 */ /* 防止应用层非法使用(上下文中存在span),不生成root span。 */
if (tracer.currentSpan() != null) { if (tracer.currentSpan() != null) {
log.info("应用层上下文中存在span.");
return pjp.proceed(); return pjp.proceed();
} }
log.info("应用层上下文中不存在span.");
brave.Span span = tracer.newTrace(); brave.Span span = tracer.newTrace();
try (Tracer.SpanInScope ws = tracer.withSpanInScope(span)) { try (Tracer.SpanInScope ws = tracer.withSpanInScope(span)) {
// note: try-with-resources closes the scope *before* the catch block // 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