close method

Future<void> close()

Closes the exporter and releases the underlying HTTP client when it is owned by this exporter.

Implementation

Future<void> close() async {
  if (_closed) return;
  _closed = true;
  if (_ownsHttpClient) {
    _httpClient.close();
  }
}