-
Notifications
You must be signed in to change notification settings - Fork 108
Adding telemetry publish for unhandled exceptions to developer exception page #185
Conversation
Hi @JunTaoLuo, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
Assert.NotNull(listener.DiagnosticUnhandledException?.HttpContext); | ||
Assert.NotNull(listener.DiagnosticUnhandledException?.Exception); | ||
Assert.Null(listener.HostingUnhandledException?.HttpContext); | ||
Assert.Null(listener.HostingUnhandledException?.Exception); |
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.
Assert NotNull HostingEndRequest
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.
I'm guessing I should Assert NotNull HostingBeginRequest as well?
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.
shrug that's out of scope of this change.
Include the bug number in the commit message. |
@Tratcher I will add the bug number once I squash all commits |
When is this event triggered as apposed to |
@avanderhoorn When the developer exception page successfully displays. Since the exception will be suppressed, we want to publish it to telemetry source as diagnostic unhandled exception. If for other reasons displaying the exception fails, the exception will be bubbled up to hosting and will trigger the telemetry publish there. |
Great, so in the case that this event happens, we wont get the |
@avanderhoorn right. In fact, without this change, the hosting one will never trigger any ways since the exception is not rethrown. |
Makes sense. Thanks! |
For our part we would like to know about that exception too. |
@avanderhoorn cool. I added the telemetry publish for exception handler as well. It's going to publish to |
Sounds great! On Friday, October 2, 2015, John Luo [email protected] wrote:
|
…ion page and exception handler #180
bd3cb1c
to
7b9cfac
Compare
I'm going to take that as a All tests passed so I'll merge to dev. |
Thanks! |
For #180 cc @Eilon @Tratcher