Skip to content

Update AddInMemoryExporter extension method signature#1514

Merged
cijothomas merged 11 commits intoopen-telemetry:masterfrom
utpilla:utpilla/Update-InMemoryExporter
Nov 13, 2020
Merged

Update AddInMemoryExporter extension method signature#1514
cijothomas merged 11 commits intoopen-telemetry:masterfrom
utpilla:utpilla/Update-InMemoryExporter

Conversation

@utpilla
Copy link
Copy Markdown
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 November 12, 2020 00:30
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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.

4 participants