提交 c7c0256c 编写于 作者: wu-sheng's avatar wu-sheng

Fix inject method bug.

上级 888e0484
......@@ -45,7 +45,7 @@ public class TracingContext implements AbstractTracerContext {
@Override
public void inject(ContextCarrier carrier) {
AbstractTracingSpan span = this.activeSpan();
if (span.isExit()) {
if (!span.isExit()) {
throw new IllegalStateException("Inject can be done only in Exit Span");
}
ExitSpan exitSpan = (ExitSpan)span;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册