[OpenTelemetry] Remove vendored EnvironmentVariablesConfigurationProvider#7146
[OpenTelemetry] Remove vendored EnvironmentVariablesConfigurationProvider#7146stevejgordon wants to merge 2 commits into
Conversation
- Update dependencies to use Microsoft.Extensions.Configuration.EnvironmentVariables. - Add basic E2E test to validate existing ENV VAR behaviour continues to function.
adbb557 to
34d71f7
Compare
martincostello
left a comment
There was a problem hiding this comment.
The change seems OK to me from a code perspective, but I defer to the other maintainers for background on why this was done in the first place that might cause issues (e.g. the additional dependencies for opentelemetry-dotnet-instrumentation).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7146 +/- ##
==========================================
+ Coverage 89.59% 89.64% +0.05%
==========================================
Files 272 272
Lines 13376 13376
==========================================
+ Hits 11984 11991 +7
+ Misses 1392 1385 -7
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Yeah if the driver is dependency reduction, then we may need to instead consider if we want a sync mechanism for the vendored code intead. I know the instrumentation team were doing work to improve dependency issues, so this may now be suitable. |
|
@open-telemetry/dotnet-instrumentation-approvers perspective: I would not block this change only for AutoInstrumentation. |
| /// </summary> | ||
| [CollectionDefinition(Name, DisableParallelization = true)] | ||
| #pragma warning disable CA1515 // xUnit1027 requires [CollectionDefinition] classes to be public. | ||
| public sealed class EnvVarsCollectionDefinition |
There was a problem hiding this comment.
@martincostello, as I remember you have implemented scope tools for testing env vars. Can it be used instead of adding collections?
There was a problem hiding this comment.
If EnvironmentVariableScope is being used we shouldn't need to use it, unless there's a lot of parallelism going on.
|
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
|
I can update the tests if we still want to consider this change? I guess we need a final position from the @open-telemetry/dotnet-maintainers on taking this dependency within the SDK. |
|
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
Fixes #7141
Contributes to #6380 as a pre-requisite simplification
Changes
EnvironmentVariablesConfigurationProvider.Microsoft.Extensions.Configuration.EnvironmentVariables.Merge requirement checklist
CHANGELOG.mdfiles updated for non-trivial changesChanges in public API reviewed (if applicable)