use of io.jaegertracing.internal.Reference in project jaeger-client-java by jaegertracing.
the class JaegerThriftSpanConverter method buildReferences.
static List<SpanRef> buildReferences(List<Reference> references) {
List<SpanRef> thriftReferences = new ArrayList<SpanRef>(references.size());
for (Reference reference : references) {
SpanRefType thriftRefType = References.CHILD_OF.equals(reference.getType()) ? SpanRefType.CHILD_OF : SpanRefType.FOLLOWS_FROM;
thriftReferences.add(new SpanRef(thriftRefType, reference.getSpanContext().getTraceIdLow(), reference.getSpanContext().getTraceIdHigh(), reference.getSpanContext().getSpanId()));
}
return thriftReferences;
}
Aggregations