-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Exception with redefined property(new modifier) stops enrichment altogether #343
Comments
I am using Serilog.Exceptions with ApplicationInsights sink and it works fine. Moreover, Serilog.Exceptions is basically unrelated to any particular sink, its code is executed before sink code obviously. |
Yea, my bad, it seems that issue is with Refit.ValidationApiException. It's not getting deconstructed. I'll try to create an example |
I'm having trouble finding a public API that will return that exception. In this repo everything works when ApiException is caught, but if ValidationApiException is caught then nothing gets deconstructed, not even properties from the base ApiException class. I'll try to find a public API that throws ValidationApiException but at the moment this is the best I could come up with. In the meantime I changed my code to serialize Content manually and log it.
|
You don't need public API, just create exception manually then log it and verify result in the log output. |
I tried but had issues because it required APiException in constructor. Switched to using reflection now. Repo is updated, you can see that Content is set to some ProblemDetails object, but nothing is output in console. |
If someone has used the |
@RehanSaeed yes, agreed 100%, next PR will tackle that problem. Just to reiterate: this PR is just a safety mechanism, the last line of defense, but not the only one. |
@RehanSaeed when can we expect new version with this fix? |
@krajek Do you want to put in another PR with further improvements? E.g. using |
Yes, but I would not suggest delaying the release because of that. Other
changes will not affect API.
wt., 15 cze 2021, 10:12 użytkownik Muhammad Rehan Saeed <
***@***.***> napisał:
… @krajek <https://github.com/krajek> Do you want to put in another PR with
further improvements? E.g. using ConcurrentDictionary?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6QHSUZ6J2S47ZFMWE6MN3TS4DPRANCNFSM444IDWJQ>
.
|
Describe the feature
Not sure if this eve belongs here, but I'm having trouble getting this package to work with ApplicationInsights sink. I'm trying to get deconstructed Refit.ValidationApiException but no luck.
Any help would be appreciated
The text was updated successfully, but these errors were encountered: