public static SegmentStatusStrategy findByName(String name) {
        for (final SegmentStatusStrategy strategy : SegmentStatusStrategy.values()) {
            if (strategy.name().equalsIgnoreCase(name)) {
                return strategy;
            }
        }
        return FROM_SPAN_STATUS;
    }
`FROM_FIRST_SPAN` means the segment status would be determined by the status of the first span only.
oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/trace/parser/listener/strategy/SegmentStatusStrategy.java