From 0283354b00502be730d412d36d8be25877df351d Mon Sep 17 00:00:00 2001 From: Mike Dame Date: Tue, 13 Jun 2023 15:19:28 +0000 Subject: [PATCH] Add logger to test --- exporter/collector/integrationtest/inmemoryocexporter.go | 3 ++- exporter/collector/metrics.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/exporter/collector/integrationtest/inmemoryocexporter.go b/exporter/collector/integrationtest/inmemoryocexporter.go index d7f5a51df..3165dfd21 100644 --- a/exporter/collector/integrationtest/inmemoryocexporter.go +++ b/exporter/collector/integrationtest/inmemoryocexporter.go @@ -161,7 +161,8 @@ func NewMetricTestExporter( exporter, err := collector.NewGoogleCloudMetricsExporter( ctx, cfg, - zap.NewNop(), + //zap.NewNop(), + zap.NewExample(), "latest", collector.DefaultTimeout, ) diff --git a/exporter/collector/metrics.go b/exporter/collector/metrics.go index a93a5cbc8..9ed8bbb9b 100644 --- a/exporter/collector/metrics.go +++ b/exporter/collector/metrics.go @@ -503,7 +503,7 @@ func (me *MetricsExporter) readWALAndExport(ctx context.Context) error { if time.Duration(backoff*int(time.Second)) >= me.wal.maxBackoff { break } - time.Sleep(time.Duration(1<