Commit cb1caca
fix(aspnetcore): guard DiagnosticListener reflection from TargetInvocationException
Wrap GetPropertyValue in try-catch to prevent PropertyInfo.GetValue
from throwing through OnNext, which violates the IObserver<T> contract
and could cause DiagnosticListener to permanently unsubscribe the
observer, silently breaking all exception reporting.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b8b9084 commit cb1caca
1 file changed
Lines changed: 7 additions & 3 deletions
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
0 commit comments