Skip to content

Add Ostream log exporter and tests#430

Merged
lalitb merged 8 commits intoopen-telemetry:masterfrom
open-o11y:logs-ostream-exporter
Dec 18, 2020
Merged

Add Ostream log exporter and tests#430
lalitb merged 8 commits intoopen-telemetry:masterfrom
open-o11y:logs-ostream-exporter

Conversation

@kxyr
Copy link
Copy Markdown
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
Copy Markdown

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%) ⬆️

Comment thread exporters/ostream/include/opentelemetry/exporters/ostream/log_exporter.h Outdated
Comment thread exporters/ostream/src/log_exporter.cc Outdated
Comment thread exporters/ostream/include/opentelemetry/exporters/ostream/log_exporter.h Outdated
Comment thread exporters/ostream/include/opentelemetry/exporters/ostream/log_exporter.h Outdated
Comment thread api/include/opentelemetry/logs/logger.h Outdated
Comment thread exporters/ostream/test/ostream_log_test.cc Outdated
Comment thread exporters/ostream/test/ostream_log_test.cc Outdated
@kxyr kxyr force-pushed the logs-ostream-exporter branch 4 times, most recently from 05ef3d5 to e663e80 Compare December 13, 2020 19:46
@kxyr
Copy link
Copy Markdown
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)

Comment thread exporters/ostream/src/log_exporter.cc
Copy link
Copy Markdown
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
@kxyr kxyr force-pushed the logs-ostream-exporter branch from 5ee27ca to 8f9dc4d Compare December 15, 2020 14:57
Comment thread exporters/ostream/include/opentelemetry/exporters/ostream/log_exporter.h Outdated
Comment thread exporters/ostream/src/log_exporter.cc Outdated
Comment thread exporters/ostream/src/log_exporter.cc
Comment thread exporters/ostream/src/log_exporter.cc
Copy link
Copy Markdown
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.

Comment thread exporters/ostream/include/opentelemetry/exporters/ostream/log_exporter.h Outdated
@kxyr kxyr force-pushed the logs-ostream-exporter branch from 4dfdfa6 to 6c94e6e Compare December 16, 2020 20:13
@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
GerHobbelt pushed a commit to GerHobbelt/opentelemetry-cpp that referenced this pull request Aug 31, 2025
…and-patch-dependencies

Update otel/opentelemetry-collector Docker tag to v0.131.0
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