public SpanBo build() {
            SpanBo result = new SpanBo();
            result.setVersion(this.version);
            result.setAgentId(StringPrecondition.requireHasLength(this.agentId, "agentId"));
            result.setAgentName(this.agentName);
            result.setApplicationName(StringPrecondition.requireHasLength(this.applicationName, "applicationName"));
            result.setAgentStartTime(this.agentStartTime);
            result.setTransactionId(this.transactionId);
            result.setSpanId(this.spanId);
            result.setParentSpanId(this.parentSpanId);
            result.setParentApplicationName(this.parentApplicationName);
            result.setParentApplicationServiceType(this.parentApplicationServiceType);
            result.setStartTime(this.startTime);
            result.setElapsed(this.elapsed);
            result.setRpc(this.rpc);
            result.setServiceType(this.serviceType);
            result.setEndPoint(this.endPoint);
            result.setApiId(this.apiId);
            result.setFlag(this.flag);
            result.setErrCode(this.errCode);
            result.setCollectorAcceptTime(this.collectorAcceptTime);
            result.setExceptionClass(this.exceptionClass);
            if (this.exceptionInfo != null) {
                result.setExceptionInfo(exceptionInfo);
            }
            result.setApplicationServiceType(this.applicationServiceType);
            result.setAcceptorHost(this.acceptorHost);
            result.setRemoteAddr(this.remoteAddr);
            result.setLoggingTransactionInfo(this.loggingTransactionInfo);
            result.setAnnotationBoList(this.annotationBoList);
            result.addSpanEventBoList(this.spanEventBoList);
            return result;
        }
@deprecated 3.1.0 Use {@link #setApplicationName(String)} instead.
commons-server/src/main/java/com/navercorp/pinpoint/common/server/bo/SpanBo.java