Skip to content

[SDK] Remove the dependency on M.E.Options 5.0#4093

Merged
cijothomas merged 5 commits into
open-telemetry:mainfrom
CodeBlanch:options-dependency
Jan 25, 2023
Merged

[SDK] Remove the dependency on M.E.Options 5.0#4093
cijothomas merged 5 commits into
open-telemetry:mainfrom
CodeBlanch:options-dependency

Conversation

@CodeBlanch

@CodeBlanch CodeBlanch commented Jan 20, 2023

Copy link
Copy Markdown
Member

Relates to #4084

Changes

Removes the direct reference to Microsoft.Extensions.Options 5.0 from SDK and instead pulls in the newer OptionsFactory bits with some modifications for what SDK needs.

TODOs

  • Appropriate CHANGELOG.md updated for non-trivial changes

private bool spanLinkAttributeCountLimitSet;

internal SdkLimitOptions()
public SdkLimitOptions()

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note: The class is still internal this just satisfies the new() constraint which Options 3.1 requires of TOptions.

@codecov

codecov Bot commented Jan 20, 2023

Copy link
Copy Markdown

Codecov Report

Merging #4093 (765d165) into main (03af717) will increase coverage by 0.10%.
The diff coverage is 65.51%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4093      +/-   ##
==========================================
+ Coverage   85.46%   85.56%   +0.10%     
==========================================
  Files         292      293       +1     
  Lines       11306    11330      +24     
==========================================
+ Hits         9663     9695      +32     
+ Misses       1643     1635       -8     
Impacted Files Coverage Δ
...Telemetry.Exporter.Jaeger/JaegerExporterOptions.cs 100.00% <ø> (ø)
...elemetryProtocol/Implementation/SdkLimitOptions.cs 100.00% <ø> (ø)
...orter.OpenTelemetryProtocol/OtlpExporterOptions.cs 100.00% <ø> (ø)
...Telemetry.Exporter.Zipkin/ZipkinExporterOptions.cs 100.00% <ø> (ø)
...emetry/Internal/Options/ConfigurationExtensions.cs 100.00% <ø> (ø)
...metry/Trace/BatchExportActivityProcessorOptions.cs 100.00% <ø> (ø)
...metry/Internal/Options/DelegatingOptionsFactory.cs 65.51% <65.51%> (ø)
src/OpenTelemetry/BatchExportProcessor.cs 84.11% <0.00%> (+1.86%) ⬆️
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 100.00% <0.00%> (+2.85%) ⬆️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 82.35% <0.00%> (+5.88%) ⬆️
... and 4 more

@CodeBlanch CodeBlanch marked this pull request as ready for review January 24, 2023 21:31
@CodeBlanch CodeBlanch requested a review from a team January 24, 2023 21:31
Comment on lines +88 to +89
}
foreach (IPostConfigureOptions<TOptions> post in _postConfigures)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit:

Suggested change
}
foreach (IPostConfigureOptions<TOptions> post in _postConfigures)
}
foreach (IPostConfigureOptions<TOptions> post in _postConfigures)

@reyang reyang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

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.

4 participants