-
Notifications
You must be signed in to change notification settings - Fork 777
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
Removed dependency from ConsoleExporter #1760
Removed dependency from ConsoleExporter #1760
Conversation
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.
LGTM.
@@ -26,12 +25,13 @@ namespace OpenTelemetry.Tests.Trace | |||
public class ExportProcessorTest | |||
{ | |||
private const string ActivitySourceName = "ActivityExportProcessorTest"; | |||
private List<Activity> exportedActivities = new List<Activity>(); |
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.
not blocking this PR, if the intention is to allow multiple test cases to run concurrently, consider using a thread safe version (e.g. concurrent collection)
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 believe xUnit creates a new instance of the class for each of the tests in the class. So these tests don't share the collection. I could move the instantiation to the constructor.
Codecov Report
@@ Coverage Diff @@
## main #1760 +/- ##
==========================================
+ Coverage 83.16% 84.04% +0.88%
==========================================
Files 193 187 -6
Lines 5986 5916 -70
==========================================
- Hits 4978 4972 -6
+ Misses 1008 944 -64 |
Changes