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

Allow the usage of JSON for Elixir 1.18+ #845

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

whatyouhide
Copy link
Collaborator

@altjohndev I couldn't force push to your branch, but this is your PR with some changes I made on top of it to remove the compile-time configuration and other small cleanups. Can you review this? 🙃

@altjohndev
Copy link

LGTM, thanks for applying the changes!

The CI is failing for Elixir 1.18+. Maybe test/support/*can be ignored for Dialyzer?

assert error.__struct__ == JSON.DecodeError
else
assert error.__struct__ == Jason.DecodeError
end
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we're introducing a shim under Sentry.JSON shouldn't we also raise Sentry.JSON.DecodeError?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not introducing Sentry.JSON for users, it's just for us during this transition time.

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.

3 participants