-
Notifications
You must be signed in to change notification settings - Fork 790
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
Adding MeterProviderBuilder #1149
Conversation
Codecov Report
@@ 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
|
updating changelog
mb.SetMetricPushInterval(TimeSpan.FromSeconds(pushIntervalInSecs)); | ||
})); | ||
MeterProvider.SetDefault(Sdk.CreateMeterProviderBuilder() | ||
.SetProcessor(processor) |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roger that, thanks.
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: