Skip to content
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

Serialize addresses as strings #1692

Merged
merged 2 commits into from
Jun 7, 2022
Merged

Conversation

mattjohnsonpint
Copy link
Contributor

Address properties on stack traces were previously being serialized to JSON as long integers, rather than in hex string format. For example, "image_addr": 140734736058048 instead of "image_addr": "0x7fff5bf346c0".

While either format is allowed by the back end (handled in this function), most of the other Sentry SDKs are using the string format.

Specifically, image_addr and symbol_addr are represented as strings in the Java SDK. Passing events via serialization/deserialization between the two SDKs will fail unless they are strings here. (I'll be doing that in a future PR soon, when sending data between the managed and Android-native SDKs.)

I've left the actual properties alone, as they are public and we don't need a breaking change.

@mattjohnsonpint mattjohnsonpint merged commit 7c48687 into main Jun 7, 2022
@mattjohnsonpint mattjohnsonpint deleted the fix-stackframe-serialization branch June 7, 2022 07:18
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