Closed CodeBlanch closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 86.23%. Comparing base (
6250307
) to head (8c3a151
). Report is 300 commits behind head on main.
Do you think that it is worth to add some additional DI to our coverage?
+1, if this is a scenario we would support, a test case is needed.
Do you think that it is worth to add some additional DI to our coverage?
I commented about that a bit on here and we discussed somewhat on the SIG this week. Short answer is I feel like we should do something but I don't know what that something is 🤣 I don't feel a test in OtlpExporter project would be super useful. Because any dev at any time in this repo or contrib who introduces a serviceProvider.GetService(...)
or serviceProvider.GetServices(...)
call may run into this again. We would need coverage over everything using all known containers which exist or may exist in the future. Yuck!
I just spun up this issue in runtime to see if there might be a better way to do it or if some other safe way could be added: https://github.com/dotnet/runtime/issues/107153
What version can I expect to see this fix in? We need to get off 1.7.0 due to some vulnerability reports.
Fixes #5537 Fixes #5803
Changes
UseOtlpExporterRegistration
from being instantiated without a registration when using Unity or Grace DI containersMerge requirement checklist
CHANGELOG.md
files updated for non-trivial changes