Clean up metric reader options#3038
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3038 +/- ##
==========================================
+ Coverage 84.74% 84.91% +0.16%
==========================================
Files 258 259 +1
Lines 9105 9112 +7
==========================================
+ Hits 7716 7737 +21
+ Misses 1389 1375 -14
|
| public static class ConsoleExporterMetricsExtensions | ||
| { | ||
| private const int DefaultExportIntervalMilliseconds = Timeout.Infinite; | ||
| private const int DefaultExportTimeoutMilliseconds = 30000; |
There was a problem hiding this comment.
Do we need timeout 30000 or Infinite?
There was a problem hiding this comment.
I just submitted open-telemetry/opentelemetry-specification#2415 for further clarification.
I'll set to Infinite for now and change depending on how things shake out.
| public static class InMemoryExporterMetricsExtensions | ||
| { | ||
| private const int DefaultExportIntervalMilliseconds = Timeout.Infinite; | ||
| private const int DefaultExportTimeoutMilliseconds = 30000; |
There was a problem hiding this comment.
Do we need timeout 30000 or Infinite?
cijothomas
left a comment
There was a problem hiding this comment.
LGTM except the same qn as Reiley about default for ExportTimeout to be infinite vs 30
|
We could get rid of the default exportInterval and timeout in |
It is still possible to instantiate the var metricExporter = new ConsoleExporter();
var metricReader = new PeriodicExportingMetricReader(exporter);
var meterProviderBuilder = Sdk.CreateMeterProviderBuilder().AddReader(metricReader); |
MetricReaderTypeenumeration.PeriodicExportingMetricReaderOptions.ExportTimeoutMillisecondswith a default of30000for all push exporters.MetricReaderOptions.PeriodicExportingMetricReaderOptionsis no longer settable.