From f53139106792af90f47b29c361066a6dc148bc05 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Wed, 23 Mar 2022 17:05:00 -0700 Subject: [PATCH] Use 10 sec export interval for console (#3081) --- src/OpenTelemetry.Exporter.Console/CHANGELOG.md | 3 +++ .../ConsoleExporterMetricsExtensions.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/OpenTelemetry.Exporter.Console/CHANGELOG.md b/src/OpenTelemetry.Exporter.Console/CHANGELOG.md index cff84ecd183..91c31289e49 100644 --- a/src/OpenTelemetry.Exporter.Console/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.Console/CHANGELOG.md @@ -7,6 +7,9 @@ ([#2929](https://github.com/open-telemetry/opentelemetry-dotnet/pull/2929) [#3061](https://github.com/open-telemetry/opentelemetry-dotnet/pull/3061)) +* `AddConsoleExporter` extension method by default sets up exporter + to export metrics every 10 seconds. + ## 1.2.0-rc3 Released 2022-Mar-04 diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs index 6d7766b3bb2..ed22e66e31c 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs @@ -26,7 +26,7 @@ namespace OpenTelemetry.Metrics /// public static class ConsoleExporterMetricsExtensions { - private const int DefaultExportIntervalMilliseconds = Timeout.Infinite; + private const int DefaultExportIntervalMilliseconds = 10000; private const int DefaultExportTimeoutMilliseconds = Timeout.Infinite; ///