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

Add Ostream log exporter and tests #430

Merged
merged 8 commits into from
Dec 18, 2020

Conversation

kxyr
Copy link
Contributor

@kxyr kxyr commented Dec 8, 2020

This PR adds:

  • A OStream Log Exporter
  • Unit tests and a full logging pipeline test

cc @MarkSeufert @alolita

@kxyr kxyr requested a review from a team December 8, 2020 22:58
@kxyr kxyr changed the title Logs ostream exporter Add Ostream log exporter and tests Dec 8, 2020
@codecov
Copy link

codecov bot commented Dec 8, 2020

Codecov Report

Merging #430 (c24cd07) into master (c46951e) will increase coverage by 0.15%.
The diff coverage is 98.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #430      +/-   ##
==========================================
+ Coverage   94.21%   94.37%   +0.15%     
==========================================
  Files         182      185       +3     
  Lines        7853     8014     +161     
==========================================
+ Hits         7399     7563     +164     
+ Misses        454      451       -3     
Impacted Files Coverage Δ
exporters/ostream/src/log_exporter.cc 97.33% <97.33%> (ø)
...ude/opentelemetry/exporters/ostream/log_exporter.h 100.00% <100.00%> (ø)
exporters/ostream/test/ostream_log_test.cc 100.00% <100.00%> (ø)
sdk/test/metrics/counter_aggregator_test.cc 98.21% <0.00%> (-1.79%) ⬇️
sdk/test/common/circular_buffer_test.cc 98.97% <0.00%> (-1.03%) ⬇️
...include/opentelemetry/sdk/common/attribute_utils.h 60.00% <0.00%> (+28.00%) ⬆️

@kxyr
Copy link
Contributor Author

kxyr commented Dec 14, 2020

@lalitb @g-easy @ThomsonTan Would love another review on this! (Just updated with the newly merged Recordable interface from #438)

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

LGTM

@kxyr kxyr force-pushed the logs-ostream-exporter branch 2 times, most recently from dc26c11 to 5ee27ca Compare December 15, 2020 14:35
Copy link
Contributor

@jsuereth jsuereth left a comment

Choose a reason for hiding this comment

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

Looks good, would just like to move helper methods into CC file or (at a minimum) make them private.

@lalitb lalitb merged commit e4d0b2c into open-telemetry:master Dec 18, 2020
kxyr pushed a commit to open-o11y/opentelemetry-cpp that referenced this pull request Dec 22, 2020
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.

6 participants