APISonar


com.alipay.common.tracer.core.span.SofaTracerSpan.log

> com > alipay > common > tracer > core > span > SofaTracerSpan > log
com APIs alipay APIs common APIs tracer APIs core APIs span APIs SofaTracerSpan APIs log APIs

Example 1
public void clientReceiveTagFinish(SofaTracerSpan clientSpan, String resultCode) {
        if (clientSpan != null) {
            // log event
            clientSpan.log(LogData.CLIENT_RECV_EVENT_VALUE);
            // set resultCode
            clientSpan.setTag(CommonSpanTags.RESULT_CODE, resultCode);
            // finish client span
            clientSpan.finish();
        }
    }