Skip to content

Update console exporter#1051

Merged
cijothomas merged 2 commits into
masterfrom
reyang/console
Aug 12, 2020
Merged

Update console exporter#1051
cijothomas merged 2 commits into
masterfrom
reyang/console

Conversation

@reyang

@reyang reyang commented Aug 12, 2020

Copy link
Copy Markdown
Member

Following #1047, update the ConsoleExporter.

Changes

  • Updated the output format, fixed some of the know issues (e.g. use TagObjects instead of Tags, use precise timestamp format, improve readability).
  • Switched to AddConsoleExporter from UseConsoleExporter based on discussion in Update MyExporter example #1047.
  • Changed file name based on discussion in Update MyExporter example #1047.

Please provide a brief description of the changes here. Update the
CHANGELOG.md for non-trivial changes.

For significant contributions please make sure you have completed the following items:

  • Design discussion issue #
  • Changes in public API reviewed

@reyang reyang requested a review from a team August 12, 2020 06:46
return builder.AddProcessor(new SimpleActivityProcessor(consoleExporter));
var options = new ConsoleExporterOptions();
configure?.Invoke(options);
return builder.AddProcessor(new SimpleActivityProcessor(new ConsoleExporter(options)));

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.

Do we let user pick Simple vs Batched for other exporters?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I guess it doesn't make much sense for console exporter to be batched as it is specifically designed for local dev scenario?

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.

Yea. I was asking general approach for other exporters which can operate in simple and batch mode..

@cijothomas cijothomas left a comment

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.

LGTM

@codecov

codecov Bot commented Aug 12, 2020

Copy link
Copy Markdown

Codecov Report

Merging #1051 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1051      +/-   ##
==========================================
+ Coverage   77.13%   77.15%   +0.01%     
==========================================
  Files         221      221              
  Lines        6092     6092              
==========================================
+ Hits         4699     4700       +1     
+ Misses       1393     1392       -1     
Impacted Files Coverage Δ
...us/Implementation/PrometheusExporterEventSource.cs 72.72% <0.00%> (+9.09%) ⬆️

@cijothomas cijothomas merged commit 7b86d25 into master Aug 12, 2020
@cijothomas cijothomas deleted the reyang/console branch August 12, 2020 07:17
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.

2 participants