Commit 67f5e068 authored by 杨锐's avatar 杨锐

done

parent d9668fe4
...@@ -436,13 +436,14 @@ public class BraveAutoConfiguration { ...@@ -436,13 +436,14 @@ public class BraveAutoConfiguration {
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
} catch (RuntimeException | Error e) { } catch (RuntimeException | Error e) {
log.error("dynamicTrace error = 【{}】", e);
span.error(e); span.error(e);
throw e;
} finally { } finally {
span.finish(); span.finish();
} }
} }
} finally { } finally {
/* just in case, maybe not. */
return pjp.proceed(); return pjp.proceed();
} }
} }
......
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