addSegment({ segment, transaction, parentId, isRoot }) {
    if (!this.started) {
      logger.trace('Aggregator has not yet started, dropping span (%s).', segment.name)
      return
    }

    const span = StreamingSpanEvent.fromSegment(segment, transaction, parentId, isRoot)
    this.stream.write(span)
  }
Attempts to add the given segment to the collection.

@param {object} params to function
@param {TraceSegment} params.segment segment to add.
@param {string} [parms.parentId] GUID of the parent span.
@param {Transaction} params.transaction active transaction
@param {boolean} params.isRoot is segment root segment
@param params.parentId
@returns {boolean} True if the segment was added, or false if it was discarded.