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 tests for tracing appender #1415

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

cijothomas
Copy link
Member

tracing-appender today has zero test coverage. This is adding the basic coverage. I am leveraging InMemoryExporter, so this is more than unit tests and indirectly tests the Logging API/SDK as well.

This should make it easier to review PRs like #1380 and #1394 as well.

Changes from #1402 was needed for the tests, so I included that into this PR as @psandana is waiting for Microsoft CLA. (I have messaged him in separately about this)

@cijothomas cijothomas requested a review from a team November 30, 2023 01:04
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cd23ec2) 57.3% compared to head (a48c0bd) 58.1%.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1415     +/-   ##
=======================================
+ Coverage   57.3%   58.1%   +0.7%     
=======================================
  Files        146     146             
  Lines      18184   18301    +117     
=======================================
+ Hits       10434   10641    +207     
+ Misses      7750    7660     -90     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Thanks for adding the tests. Few nit comments.

opentelemetry-appender-tracing/src/layer.rs Show resolved Hide resolved
opentelemetry-appender-tracing/src/layer.rs Show resolved Hide resolved
@cijothomas cijothomas merged commit 8b838fc into open-telemetry:main Nov 30, 2023
15 checks passed
@cijothomas cijothomas deleted the cijothomas/appender-tests branch November 30, 2023 16:53
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.

3 participants