private GoogleCloudMetricExporter()

in exporters/metrics/src/main/java/com/google/cloud/opentelemetry/metric/GoogleCloudMetricExporter.java [37:50]


  private GoogleCloudMetricExporter(MetricConfiguration configuration) {
    this.internalMetricExporterSupplier =
        Suppliers.memoize(
            () -> {
              try {
                return InternalMetricExporter.createWithConfiguration(configuration);
              } catch (IOException e) {
                logger.warn(
                    "Unable to initialize GoogleCloudMetricExporter. Export operation failed, switching to NoopMetricExporter.",
                    e);
                return new NoopMetricExporter();
              }
            });
  }