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

Allow the context carrier is null when creating entry span.

上级 1c820011
......@@ -77,12 +77,9 @@ public class ContextManager implements TracingContextListener, BootService, Igno
}
public static AbstractSpan createEntrySpan(String operationName, ContextCarrier carrier) {
if (carrier == null) {
throw new IllegalArgumentException("ContextCarrier can't be null.");
}
SamplingService samplingService = ServiceManager.INSTANCE.findService(SamplingService.class);
AbstractTracerContext context;
if (carrier.isValid()) {
if (carrier != null && carrier.isValid()) {
samplingService.forceSampled();
context = getOrCreate(operationName, true);
context.extract(carrier);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册