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

[sdk-logs] Tests and bug fixes for logging builder & provider #4467

Merged

Conversation

CodeBlanch
Copy link
Member

Relates to #4433

Changes

  • Added tests for new SDK logging builders & provider and fixed some bugs that manifested as a result.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (nullable enabled, static analysis, etc.)
  • Unit tests added/updated

@CodeBlanch CodeBlanch requested a review from a team May 5, 2023 20:09
using var provider = Sdk.CreateLoggerProviderBuilder()
.ConfigureServices(services =>
{
if (callNestedConfigure)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not want to assert something specific based on callNestedConfigure?

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 wrote that test so long ago I can't remember, TBH. I added an assert in the logging one and its cousins in tracing & metrics. I figured it couldn't hurt 😄

@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #4467 (a1d9712) into main (4376564) will increase coverage by 1.68%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4467      +/-   ##
==========================================
+ Coverage   83.32%   85.01%   +1.68%     
==========================================
  Files         314      314              
  Lines       12522    12524       +2     
==========================================
+ Hits        10434    10647     +213     
+ Misses       2088     1877     -211     
Impacted Files Coverage Δ
...endencyInjectionLoggerProviderBuilderExtensions.cs 100.00% <100.00%> (ø)
src/OpenTelemetry/ProviderExtensions.cs 95.45% <100.00%> (+0.45%) ⬆️

... and 12 files with indirect coverage changes

@CodeBlanch CodeBlanch merged commit 085df7a into open-telemetry:main May 8, 2023
@CodeBlanch CodeBlanch deleted the sdk-logs-builderandprovidertests branch May 8, 2023 18:00
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