Skip to content

Conversation

yousif-bugsnag
Copy link
Contributor

Goal

Fixes a crash in the serializer when attempting to serialize an Exception object attached to an event as metadata.

This happens because MethodBase (the TargetSite property of Exceptions) is not serializable.

Design

The Serializer now serializes values of type MethodBase to null since they cannot be serialized - to remove the property entirely would require some significant refactoring due to how the serialization code is structured

Testing

Added a new unit test case, plus manual testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants