Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MetricReaderType to OtlpExporterOptions #2674

Merged

Conversation

alanwest
Copy link
Member

Follow on from #2648

@alanwest alanwest requested a review from a team November 24, 2021 01:59
Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@codecov
Copy link

codecov bot commented Nov 24, 2021

Codecov Report

Merging #2674 (2d427c4) into main (cabb847) will decrease coverage by 0.06%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2674      +/-   ##
==========================================
- Coverage   82.94%   82.87%   -0.07%     
==========================================
  Files         249      249              
  Lines        8688     8691       +3     
==========================================
- Hits         7206     7203       -3     
- Misses       1482     1488       +6     
Impacted Files Coverage Δ
...nTelemetryProtocol/OtlpMetricExporterExtensions.cs 0.00% <0.00%> (ø)
...orter.OpenTelemetryProtocol/OtlpExporterOptions.cs 100.00% <100.00%> (ø)
src/OpenTelemetry/BatchExportProcessor.cs 85.86% <0.00%> (-3.27%) ⬇️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 79.41% <0.00%> (-2.95%) ⬇️
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 97.14% <0.00%> (-2.86%) ⬇️
...ry/Metrics/PeriodicExportingMetricReaderOptions.cs 100.00% <0.00%> (+100.00%) ⬆️

@@ -68,7 +68,8 @@ internal static object Run(MetricsOptions options)
providerBuilder
.AddOtlpExporter(o =>
{
o.MetricExportIntervalMilliseconds = options.DefaultCollectionPeriodMilliseconds;
o.MetricReaderType = MetricReaderType.Periodic;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not required, right? its the default already...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay to leave it to make it obvious in the examples.

@cijothomas cijothomas merged commit f4915ea into open-telemetry:main Nov 24, 2021
@alanwest alanwest deleted the alanwest/otlp-metricreadertype-option branch November 24, 2021 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants