@Override
    public boolean isError(final SpanObject spanObject) {
        return spanObject.getIsError();
    }
If the status of any span is an error, the status of the segment would be an error.
oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/trace/parser/listener/strategy/FromSpanStatus.java