-
Notifications
You must be signed in to change notification settings - Fork 296
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
[repo] Fix netcoreapp3.1 tests failing in CI #827
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #827 +/- ##
=======================================
Coverage 77.87% 77.88%
=======================================
Files 176 176
Lines 5301 5303 +2
=======================================
+ Hits 4128 4130 +2
Misses 1173 1173
|
@@ -89,6 +91,11 @@ public ProcessMetrics(ProcessInstrumentationOptions options) | |||
description: "Process threads count."); | |||
} | |||
|
|||
public void Dispose() | |||
{ | |||
this.meterInstance.Dispose(); |
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.
I'm not sure if it's safe to do this in a scenario where you have multiple Sdks each with an instance of ProcessMetrics
added since they would be using the same Meter
name (even though each instance of ProcessMetrics
would create a new instance of Meter
).
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.
I added a test and yes, it does appear to be an issue 😭 Going to disable the test for now. I think multiple provider case is rare so it isn't super urgent that we fix this. But I'm going to spin up an issue and work with @Yun-Ting on it.
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.
Opened #831
@@ -40,7 +40,7 @@ public void AutoFlushActivityProcessor_FlushAfterLocalServerSideRootSpans_EndMat | |||
|
|||
using var source = new ActivitySource(sourceName); | |||
using var activity = source.StartActivity("name", ActivityKind.Server); | |||
activity.Dispose(); | |||
activity.Stop(); |
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.
Additional changes: