-
Notifications
You must be signed in to change notification settings - Fork 772
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
Fixed Missing Endpoint #5135
Fixed Missing Endpoint #5135
Conversation
I have finished the code changes but I am struggling with the tests. The new test case currently passest on dotnet 7 but fails on 8 with the metrics route being empty. |
@cliedeman, Thank you for reporting the issue and proposing a solution. It looks good, but given its impact on metrics instrumentation, it would be good to get confirmation from @JamesNK before proceeding. Metrics instrumentation is done natively starting .NET 8.0 and it is following the same logic as we do currently. Anything we update here, we would like to keep the changes in sync so that the experience is consistent across different .NET versions. |
Thanks @vishweshbankwar that explains the change in behaviour. |
Thanks for the heads up. I've created an aspnetcore issue to look into this - dotnet/aspnetcore#52648 |
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. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Blocked on #52648 being back ported |
Noted here dotnet/aspnetcore#52648 (comment), this fix will be available in 8.0.2. It only addresses things for metrics. I'm reopening your PR as your fix to this instrumentation is still valuable because it addresses both traces and metrics as well as benefitting .NET 6 and 7 users. |
test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.json
Outdated
Show resolved
Hide resolved
...emetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs
Outdated
Show resolved
Hide resolved
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5135 +/- ##
==========================================
- Coverage 83.38% 83.07% -0.32%
==========================================
Files 297 272 -25
Lines 12531 11985 -546
==========================================
- Hits 10449 9956 -493
+ Misses 2082 2029 -53
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Thanks @alanwest will address the feedback soon |
@alanwest I have address the feedback. How do you suggest we make the tests pass for 8 until the fix is released? |
...emetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs
Outdated
Show resolved
Hide resolved
...emetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs
Show resolved
Hide resolved
test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/README.net6.0.md
Show resolved
Hide resolved
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. |
@cliedeman Could you address the comments from @alanwest? We will move forward with the merge then. Thanks! |
When an exception if processed by the ExceptionHandler middleware the original endpoint is deleted
…/TestApplication/TestApplicationFactory.cs Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
@vishweshbankwar feedback addresed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @cliedeman!
...emetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs
Outdated
Show resolved
Hide resolved
…/TestApplication/TestApplicationFactory.cs
When an exception if processed by the ExceptionHandler middleware the original endpoint is deleted
Fixes #5134
Changes
Source endpoint from exception handler feature
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes