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

Changes around MeterProviderSdk, resolving pending comments. #2474

Merged
merged 2 commits into from
Oct 11, 2021

Conversation

Yun-Ting
Copy link
Contributor

@Yun-Ting Yun-Ting commented Oct 11, 2021

Resolved pending comments:
#2459 (comment)
#2459 (comment)

@Yun-Ting Yun-Ting requested a review from a team October 11, 2021 22:35
@codecov
Copy link

codecov bot commented Oct 11, 2021

Codecov Report

Merging #2474 (e2a3585) into main (c79ad98) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2474   +/-   ##
=======================================
  Coverage   79.79%   79.79%           
=======================================
  Files         254      254           
  Lines        8394     8395    +1     
=======================================
+ Hits         6698     6699    +1     
  Misses       1696     1696           
Impacted Files Coverage Δ
src/OpenTelemetry/Metrics/MeterProviderSdk.cs 92.11% <100.00%> (+0.03%) ⬆️
...nTelemetry/Internal/OpenTelemetrySdkEventSource.cs 71.02% <0.00%> (-3.74%) ⬇️
src/OpenTelemetry/Metrics/AggregatorStore.cs 85.60% <0.00%> (+0.75%) ⬆️
...Telemetry/Internal/SelfDiagnosticsEventListener.cs 97.63% <0.00%> (+0.78%) ⬆️
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 100.00% <0.00%> (+2.85%) ⬆️
...ZPages/Implementation/ZPagesExporterEventSource.cs 62.50% <0.00%> (+6.25%) ⬆️

@@ -231,8 +231,17 @@ public void MeterSourcesWildcardSupportMatchTest(bool hasView)
[Theory]
[InlineData(true)]
[InlineData(false)]
public void MeterSourcesWildcardSupportWithoutAddingMeterToProvider(bool hasView)
public void MeterSourcesWildcardSupportNegativeTestNoMeterAdded(bool hasView)
Copy link
Member

Choose a reason for hiding this comment

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

If there are no Meters added, then I think the SDK should throw. (This is not yet done, so this test is currently validating the current behavior)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cijothomas cijothomas merged commit 4bc68a7 into open-telemetry:main Oct 11, 2021
@Yun-Ting Yun-Ting deleted the Yun-Ting/TraceSdkProvider branch October 11, 2021 23:46
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.

2 participants