protected JaegerSpan(
JaegerTracer tracer,
String operationName,
JaegerSpanContext context,
long startTimeMicroseconds,
long startTimeNanoTicks,
boolean computeDurationViaNanoTicks,
Map<String, Object> tags,
List<Reference> references) {
this.tracer = tracer;
this.operationName = operationName;
this.context = context;
this.startTimeMicroseconds = startTimeMicroseconds;
this.startTimeNanoTicks = startTimeNanoTicks;
this.computeDurationViaNanoTicks = computeDurationViaNanoTicks;
this.tags = new HashMap<String, Object>();
this.references = references != null ? new ArrayList<Reference>(references) : null;
for (Map.Entry<String, Object> tag : tags.entrySet()) {
setTagAsObject(tag.getKey(), tag.getValue());
}
}