/** * In zipkin, the service context is attached to annotations. Sleuth spans that have no * annotations will get an "lc" one, which allows them to be queryable in zipkin by service name. */ @Test public void spanWithoutAnnotationsLogsComponent() { io.zipkin.Span result = ZipkinMessageListener.convert(span, host); assertThat(result.binaryAnnotations).hasSize(1); assertThat(result.binaryAnnotations.get(0)) .isEqualToComparingFieldByField( BinaryAnnotation.create("lc", span.getProcessId(), endpoint)); }