add method
Implementation
bool add(Span span) {
final key = _spanKey(span);
final existing = _spansById[key];
if (existing != null) {
if (_spanEquality.equals(existing.toJson(), span.toJson())) {
return false;
}
_replaceSpan(existing: existing, replacement: span);
_spansById[key] = span;
return true;
}
_spansById[key] = span;
_spans.add(span);
_insertIntoTree(span);
return true;
}