-
-
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
Add destructurer for SocketException #249
Comments
Enriching the exceptions is an interesting idea. I can see only two issues:
If you only want to add |
If an application is throwing (and logging) Application-level enrichers are common place (like the machine name enricher) and will consume much more space than what I am proposing. Each sink already has to confront this duplication and decide what to do about it. To save on space, a table with the unique values could be created. Then each log event wild contain references to entries in this table. It is a classic time-space tradeoff. I don't think However, for those overly concerned about storage space, they can filter out all When there is an exception, the default behavior
Like Nicholas says in his selective enrichment post:
|
I agree about the fragility of the URL. In my local implement of this, I didn't log the URL. Instead, I copied the sentence of documentation for each How about we do the same here? |
That sounds good to me. |
I suggest adding a destructor for
SocketException
. I volunteer to do this work, but I also want to do a bit more than the naive implementation.SocketException
has a few properties related to the error (namelyErrorCode
,NativeErrorCode
, andSocketErrorCode
). However, they are all a bit cryptic. The first two are of typeint
and the last one is of typeSocketError
, which is anenum
. Of course it also has the propertyHelpLink
inherited fromException
. If there was ever a time to set that value, it would be now, but I have only seen it set tonull
. I think a great help page is the documentation forSocketError
, which has a short phrase explaining each case of theenum
.Alongside the other properties of
SocketException
, I would prefer to also add that URL for the keySocketErrorCodeHelpLink
.How does this sound?
The text was updated successfully, but these errors were encountered: