send method

  1. @protected
Future<void> send(
  1. Metric metric
)

Report the metric to Datadog or add to the queue if it's running

Implementation

@protected
Future<void> send(Metric metric) async {
  if (_queueIsRunning) return queue.add(metric);

  return await _httpSend([metric]);
}