From b3242df4c907ce48c9f8acceaa75b8cc9fc981bd Mon Sep 17 00:00:00 2001 From: Jan-Willem Buurlage Date: Wed, 18 Jan 2023 15:54:55 +0100 Subject: [PATCH] Fix warning for misconfiguration of PeriodicExportingMetricReader The periodically exporting metric reader requires the timeout field to be strictly less than the interval field. However, the warning that is logged out gives the opposite requirement. The existing logic in the code is correct. --- sdk/src/metrics/export/periodic_exporting_metric_reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/metrics/export/periodic_exporting_metric_reader.cc b/sdk/src/metrics/export/periodic_exporting_metric_reader.cc index 8263c308ba..bcca86bee0 100644 --- a/sdk/src/metrics/export/periodic_exporting_metric_reader.cc +++ b/sdk/src/metrics/export/periodic_exporting_metric_reader.cc @@ -30,7 +30,7 @@ PeriodicExportingMetricReader::PeriodicExportingMetricReader( { OTEL_INTERNAL_LOG_WARN( "[Periodic Exporting Metric Reader] Invalid configuration: " - "export_interval_millis_ should be less than export_timeout_millis_, using default values"); + "export_timeout_millis_ should be less than export_interval_millis_, using default values"); export_interval_millis_ = kExportIntervalMillis; export_timeout_millis_ = kExportTimeOutMillis; }