Co-authored-by: 亓杨 <qiyang@enmonster.com>
This commit is contained in:
parent
b635e254c4
commit
4acf0ebc95
|
|
@ -50,7 +50,7 @@ public class ContextSnapshot {
|
|||
}
|
||||
|
||||
public boolean isFromCurrent() {
|
||||
return traceSegmentId.equals(ContextManager.capture().getTraceSegmentId());
|
||||
return traceSegmentId != null && traceSegmentId.equals(ContextManager.capture().getTraceSegmentId());
|
||||
}
|
||||
|
||||
public CorrelationContext getCorrelationContext() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue