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

Removed dependency from ConsoleExporter #1760

Conversation

utpilla
Copy link
Contributor

@utpilla utpilla commented Jan 30, 2021

Changes

  • Removed OpenTelemetry.Tests project's dependency on ConsoleExporter

@utpilla utpilla requested a review from a team January 30, 2021 00:24
Copy link
Member

@reyang reyang left a 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>();
Copy link
Member

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)

Copy link
Contributor Author

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
Copy link

codecov bot commented Jan 30, 2021

Codecov Report

Merging #1760 (1014ed9) into main (959f443) will increase coverage by 0.88%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
...emetry.Exporter.Console/ConsoleActivityExporter.cs
...xporter.Console/ConsoleExporterHelperExtensions.cs
...lemetry.Exporter.Console/ConsoleExporterOptions.cs
...metry.Exporter.Console/ConsoleLogRecordExporter.cs
...porter.Console/ConsoleExporterLoggingExtensions.cs
.../OpenTelemetry.Exporter.Console/ConsoleExporter.cs

@cijothomas cijothomas merged commit b843e8d into open-telemetry:main Jan 30, 2021
@utpilla utpilla deleted the utpilla/Remove-ConsoleExporter-Dependency-From-Sdk-Tests branch January 31, 2021 02:56
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.

3 participants