send() {
    logger.debug(`${this.method} Aggregator data send.`)
    this.emit(`starting_data_send-${this.method}`)

    const data = this._getMergeData()
    if (this.isAsync) {
      this._toPayload((_, payload) => {
        this._runSend(data, payload)
      })
    } else {
      this._runSend(data, this._toPayloadSync())
    }

    this.clear()
  }
Serialize all collected data and ship it off to the New Relic data
collector. The target endpoint is defined by {@link Aggregator#method}.

@fires Aggregator#finished_data_send-analytic_event_data
@fires Aggregator#starting_data_send-analytic_event_data
@fires Aggregator#finished_data_send-custom_event_data
@fires Aggregator#starting_data_send-custom_event_data
@fires Aggregator#finished_data_send-error_data
@fires Aggregator#starting_data_send-error_data
@fires Aggregator#finished_data_send-error_event_data
@fires Aggregator#starting_data_send-error_event_data
@fires Aggregator#finished_data_send-log_event_data
@fires Aggregator#starting_data_send-log_event_data
@fires Aggregator#finished_data_send-metric_data
@fires Aggregator#starting_data_send-metric_data
@fires Aggregator#finished_data_send-span_event_data
@fires Aggregator#starting_data_send-span_event_data
@fires Aggregator#finished_data_send-sql_trace_data
@fires Aggregator#starting_data_send-sql_trace_data
@fires Aggregator#finished_data_send-transaction_sample_data
@fires Aggregator#starting_data_send-transaction_sample_data