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

Adding MeterProviderBuilder #1149

Merged
merged 2 commits into from Aug 27, 2020
Merged

Adding MeterProviderBuilder #1149

merged 2 commits into from Aug 27, 2020

Conversation

eddynaka
Copy link
Contributor

Fixes #1146.

Changes

Please provide a brief description of the changes here. Update the
CHANGELOG.md for non-trivial changes.

For significant contributions please make sure you have completed the following items:

  • Design discussion issue #
  • Changes in public API reviewed

@eddynaka eddynaka requested a review from a team as a code owner August 24, 2020 20:54
@codecov
Copy link

codecov bot commented Aug 24, 2020

Codecov Report

Merging #1149 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1149      +/-   ##
==========================================
+ Coverage   77.39%   77.42%   +0.02%     
==========================================
  Files         219      219              
  Lines        6261     6255       -6     
==========================================
- Hits         4846     4843       -3     
+ Misses       1415     1412       -3     
Impacted Files Coverage Δ
src/OpenTelemetry/Metrics/MeterProviderBuilder.cs 100.00% <100.00%> (ø)
src/OpenTelemetry/Sdk.cs 100.00% <100.00%> (+5.26%) ⬆️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 61.76% <0.00%> (-2.95%) ⬇️
...nTelemetry/Internal/OpenTelemetrySdkEventSource.cs 80.95% <0.00%> (+3.17%) ⬆️
...us/Implementation/PrometheusExporterEventSource.cs 72.72% <0.00%> (+9.09%) ⬆️

updating changelog
@cijothomas cijothomas merged commit f48e3b4 into open-telemetry:master Aug 27, 2020
@eddynaka eddynaka deleted the feature/adding-meterproviderbuilder branch August 27, 2020 14:35
mb.SetMetricPushInterval(TimeSpan.FromSeconds(pushIntervalInSecs));
}));
MeterProvider.SetDefault(Sdk.CreateMeterProviderBuilder()
.SetProcessor(processor)
Copy link
Member

Choose a reason for hiding this comment

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

@cijothomas do we want this to be Set or Add?

Copy link
Member

Choose a reason for hiding this comment

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

If we allow multiple Processor, then Add. Else Set.
This decision is not clear, so I'll leave it as is until we actually implement Metric Sdk.
(This PR just make consistent pattern as Tracer only - Sdk.CreateMeterBuilder().accumulate_stuff_for_building().Build pattern)

Copy link
Member

Choose a reason for hiding this comment

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

Roger that, thanks.

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.

Make MeterProvider consistent with TracerProvider
3 participants