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 console exporter #1051

Merged
merged 2 commits into from
Aug 12, 2020
Merged

Update console exporter #1051

merged 2 commits into from
Aug 12, 2020

Conversation

reyang
Copy link
Member

@reyang reyang commented Aug 12, 2020

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

Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Aug 12, 2020

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