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

[Logs] Remove ConfigureResource on OpenTelemetryLoggingOptions #3999

Merged

Conversation

CodeBlanch
Copy link
Member

@CodeBlanch CodeBlanch commented Dec 9, 2022

Relates to #3307

Changes

We decided during API review of 1.4 to remove the ConfigureResource API on logs. This is a good API but we know big changes are coming to logs. In the main-logs branch this method has already been obsoleted and moved onto LoggerProviderBuilder. The goal is to bring this back soon. In the meantime, the existing SetResourceBuilder works just as well.

TODOs

  • Appropriate CHANGELOG.md updated for non-trivial changes

@CodeBlanch CodeBlanch requested a review from a team December 9, 2022 20:07
@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Merging #3999 (259a717) into main (c5fee60) will increase coverage by 0.03%.
The diff coverage is n/a.

❗ Current head 259a717 differs from pull request most recent head cf0ebd9. Consider uploading reports for the commit cf0ebd9 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3999      +/-   ##
==========================================
+ Coverage   85.40%   85.43%   +0.03%     
==========================================
  Files         289      289              
  Lines       11236    11233       -3     
==========================================
+ Hits         9596     9597       +1     
+ Misses       1640     1636       -4     
Impacted Files Coverage Δ
...lemetry/Logs/Options/OpenTelemetryLoggerOptions.cs 100.00% <ø> (+21.42%) ⬆️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 82.35% <0.00%> (+2.94%) ⬆️

@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Merging #3999 (cf0ebd9) into main (c5fee60) will increase coverage by 0.04%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3999      +/-   ##
==========================================
+ Coverage   85.40%   85.45%   +0.04%     
==========================================
  Files         289      289              
  Lines       11236    11233       -3     
==========================================
+ Hits         9596     9599       +3     
+ Misses       1640     1634       -6     
Impacted Files Coverage Δ
...lemetry/Logs/Options/OpenTelemetryLoggerOptions.cs 100.00% <ø> (+21.42%) ⬆️
src/OpenTelemetry/BatchExportProcessor.cs 84.11% <0.00%> (+1.86%) ⬆️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 82.35% <0.00%> (+2.94%) ⬆️

@CodeBlanch CodeBlanch merged commit dd342f0 into open-telemetry:main Dec 9, 2022
@CodeBlanch CodeBlanch deleted the public-api-logs-configureresource branch December 9, 2022 21:26
pjanotti pushed a commit to open-telemetry/opentelemetry-dotnet-instrumentation that referenced this pull request Dec 13, 2022
* Bump OTel to 1.4.0-rc.1

* ConfigureResource api was removed in open-telemetry/opentelemetry-dotnet#3999

* Update limits based on
open-telemetry/opentelemetry-dotnet#3978

* Fix build structure
OpenTelemetry references OpenTelemetry.Extensions.DependencyInjection package

* Fix ModuleTests

* Handle AspNetCore metrics changes
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