@Test
public void testGetLogType() throws Exception {

    //client
    SofaTracerSpan span = (SofaTracerSpan) this.sofaTracer.buildSpan("testGetLogTypeClient")
        .withStartTimestamp(111).start();
    //client
    span.setTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_CLIENT);
    assertTrue(span.isClient());
    assertFalse(span.isServer());
    //logtype
    String logType = span.getLogType();
    assertTrue(clientLogType.equals(logType));
    //server
    SofaTracerSpan serverSpan = (SofaTracerSpan) this.sofaTracer
        .buildSpan("testGetLogTypeServer").withStartTimestamp(111).start();
    serverSpan.setTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_SERVER);
    assertTrue(serverLogType.equals(serverSpan.getLogType()));
}