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

[DI] Rename DI package to OpenTelemetry.Api.ProviderBuilderExtensions #4125

Merged
merged 2 commits into from Jan 31, 2023

Conversation

CodeBlanch
Copy link
Member

@CodeBlanch CodeBlanch commented Jan 31, 2023

Fixes #4083

Changes

  • Renames OpenTelemetry.Extensions.DependencyInjection -> OpenTelemetry.Api.ProviderBuilderExtensions

TODOs

  • Appropriate CHANGELOG.md updated for non-trivial changes
  • Changes in public API reviewed

@CodeBlanch CodeBlanch requested a review from a team as a code owner January 31, 2023 18:42
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #4125 (f4cd025) into main (1f096cb) will increase coverage by 0.08%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4125      +/-   ##
==========================================
+ Coverage   85.57%   85.66%   +0.08%     
==========================================
  Files         293      293              
  Lines       11359    11359              
==========================================
+ Hits         9721     9731      +10     
+ Misses       1638     1628      -10     
Impacted Files Coverage Δ
...pendencyInjectionMeterProviderBuilderExtensions.cs 100.00% <ø> (ø)
...encyInjectionMetricsServiceCollectionExtensions.cs 100.00% <ø> (ø)
...endencyInjectionTracerProviderBuilderExtensions.cs 100.00% <ø> (ø)
...encyInjectionTracingServiceCollectionExtensions.cs 100.00% <ø> (ø)
src/OpenTelemetry/BatchExportProcessor.cs 82.24% <0.00%> (-1.87%) ⬇️
...nTelemetry/Internal/OpenTelemetrySdkEventSource.cs 82.03% <0.00%> (+1.56%) ⬆️
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 100.00% <0.00%> (+2.85%) ⬆️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 82.35% <0.00%> (+2.94%) ⬆️
...p/Implementation/HttpInstrumentationEventSource.cs 76.00% <0.00%> (+4.00%) ⬆️
...lemetry/Internal/SelfDiagnosticsConfigRefresher.cs 92.30% <0.00%> (+5.76%) ⬆️
... and 1 more

[IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection)).

The `OpenTelemetry.Api.ProviderBuilderExtensions` package is intended for
instrumentation library authors who need to integrate with the OpenTelemetry SDK
Copy link
Member

Choose a reason for hiding this comment

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

"who need to provide DI based configuration, but without taking OTel SDK dependency.. "

Feel free to grab this/similar, in a separate PR if needed.

Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

:shipit:

@CodeBlanch CodeBlanch merged commit 3a491b1 into open-telemetry:main Jan 31, 2023
@CodeBlanch CodeBlanch deleted the di-package-rename branch January 31, 2023 20:17
xiang17 added a commit to xiang17/opentelemetry-dotnet-instrumentation that referenced this pull request Feb 2, 2023
…s.DependencyInjection` was renamed to `OpenTelemetry.Api.ProviderBuilderExtensions` open-telemetry/opentelemetry-dotnet#4125
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.

OpenTelemetry 1.4.0-rc2 should not depend on OpenTelemetry.Extensions.DependencyInjection
5 participants