Skip to content

Add MetricReaderType to OtlpExporterOptions#2674

Merged
cijothomas merged 3 commits into
open-telemetry:mainfrom
alanwest:alanwest/otlp-metricreadertype-option
Nov 24, 2021
Merged

Add MetricReaderType to OtlpExporterOptions#2674
cijothomas merged 3 commits into
open-telemetry:mainfrom
alanwest:alanwest/otlp-metricreadertype-option

Conversation

@alanwest

Copy link
Copy Markdown
Member

Follow on from #2648

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

@reyang reyang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@codecov

codecov Bot commented Nov 24, 2021

Copy link
Copy Markdown

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%) ⬆️

.AddOtlpExporter(o =>
{
o.MetricExportIntervalMilliseconds = options.DefaultCollectionPeriodMilliseconds;
o.MetricReaderType = MetricReaderType.Periodic;

Copy link
Copy Markdown
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
Copy Markdown
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