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

Update AddInMemoryExporter extension method signature #1514

Merged

Conversation

utpilla
Copy link
Contributor

@utpilla utpilla commented Nov 12, 2020

Changes

  • Updated AddInMemoryExporter extension method to take in ICollection for TracerProviderBuilder and ICollection for OpenTelemetryLoggerOptions
  • Updated InMemoryExporter ctor to take in ICollection as a parameter
  • Removed ICollection from InMemoryExporterOptions

@utpilla utpilla requested a review from a team as a code owner November 12, 2020 00:30
@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #1514 (3b24803) into master (d363df8) will increase coverage by 0.04%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1514      +/-   ##
==========================================
+ Coverage   81.36%   81.40%   +0.04%     
==========================================
  Files         233      232       -1     
  Lines        6358     6357       -1     
==========================================
+ Hits         5173     5175       +2     
+ Misses       1185     1182       -3     
Impacted Files Coverage Δ
...orter.InMemory/InMemoryExporterHelperExtensions.cs 0.00% <0.00%> (ø)
...rter.InMemory/InMemoryExporterLoggingExtensions.cs 0.00% <0.00%> (ø)
...penTelemetry.Exporter.InMemory/InMemoryExporter.cs 87.50% <100.00%> (ø)
...lemetry/Internal/SelfDiagnosticsConfigRefresher.cs 21.68% <0.00%> (+3.61%) ⬆️

var activityExporter = new InMemoryExporter<Activity>(activityList);

var logRecordList = new List<LogRecord>();
var logExporter = new InMemoryExporter<LogRecord>(logRecordList);
Copy link
Member

Choose a reason for hiding this comment

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

we need to improve to an full usable example. Lets do it in a separate PR.

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.

@cijothomas cijothomas merged commit 745fccf into open-telemetry:master Nov 13, 2020
@utpilla utpilla deleted the utpilla/Update-InMemoryExporter branch November 30, 2020 22:25
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.

None yet

4 participants