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

[repo/Http] Prepare to .NET9 #2298

Merged
merged 13 commits into from
Nov 5, 2024
Merged

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Nov 5, 2024

Changes

Follow up #2251

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • [ ] Unit tests added/updated
  • [ ] Appropriate CHANGELOG.md files updated for non-trivial changes
  • [ ] Changes in public API reviewed (if applicable)

@Kielek Kielek requested a review from a team as a code owner November 5, 2024 08:29
@github-actions github-actions bot added comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http perf Performance related labels Nov 5, 2024
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 88.77551% with 11 lines in your changes missing coverage. Please review.

Project coverage is 74.11%. Comparing base (71655ce) to head (a0c5d05).
Report is 585 commits behind head on main.

Files with missing lines Patch % Lines
...ementation/HttpHandlerMetricsDiagnosticListener.cs 0.00% 7 Missing ⚠️
...elemetry.Instrumentation.Http/HttpClientMetrics.cs 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2298      +/-   ##
==========================================
+ Coverage   73.91%   74.11%   +0.20%     
==========================================
  Files         267       11     -256     
  Lines        9615      823    -8792     
==========================================
- Hits         7107      610    -6497     
+ Misses       2508      213    -2295     
Flag Coverage Δ
unittests-Instrumentation.Http 74.11% <88.77%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
....Instrumentation.Http/HttpClientInstrumentation.cs 95.65% <100.00%> (ø)
...tion.Http/HttpClientTraceInstrumentationOptions.cs 100.00% <100.00%> (ø)
...tp/Implementation/HttpHandlerDiagnosticListener.cs 71.54% <100.00%> (ø)
...plementation/HttpWebRequestActivitySource.netfx.cs 80.12% <100.00%> (ø)
...rumentation.Http/Implementation/TelemetryHelper.cs 100.00% <100.00%> (ø)
...elemetry.Instrumentation.Http/HttpClientMetrics.cs 0.00% <0.00%> (ø)
...ementation/HttpHandlerMetricsDiagnosticListener.cs 0.00% <0.00%> (ø)

... and 268 files with indirect coverage changes

FieldInfo servicePointTableField = typeof(ServicePointManager).GetField("s_ServicePointTable", BindingFlags.Static | BindingFlags.NonPublic)
?? throw new InvalidOperationException("Unable to access the ServicePointTable field");
var servicePointTableField = typeof(ServicePointManager).GetField("s_ServicePointTable", BindingFlags.Static | BindingFlags.NonPublic)
?? throw new InvalidOperationException("Unable to access the ServicePointTable field");
Copy link
Member

Choose a reason for hiding this comment

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

Did dotnet format add this blank space? Interesting 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For sure, it is not complaining :)

It seems that it is alliggned to typeof from the previous line.

Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

LGTM

Kielek and others added 2 commits November 5, 2024 22:07
@Kielek Kielek merged commit e7449fb into open-telemetry:main Nov 5, 2024
56 checks passed
@Kielek Kielek deleted the net9prep-http branch November 5, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http perf Performance related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants