Skip to content

Conversation

whatyouhide
Copy link
Collaborator

This is in line with all other SDKs. Straight from the common section of sentry-docs:

All Sentry SDKs support the before_send callback method

@whatyouhide whatyouhide changed the title Rename :before_send_event to :before_send (and hard-deprecate) Rename :before_send_event to :before_send (and hard-deprecate) Nov 17, 2023
@HazAT
Copy link
Member

HazAT commented Nov 17, 2023

Isn't this a breaking change? ^^
Also, is hard_deprecate = breaking change? Never heard it before tbh

@HazAT
Copy link
Member

HazAT commented Nov 17, 2023

Ahh this is for a major, got it 👍

config :sentry,
before_send_event: {MyModule, :before_send},
before_send: {MyModule, :before_send},
after_send_event: {MyModule, :after_send}
Copy link
Member

Choose a reason for hiding this comment

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

Should we also rename this then? (It doesn't exist in other SDKs)
after_send_event

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@HazAT it doesn't exist in other SDKs as you said, and that's exactly why I left it untouched. It's one less change folks have to deal with. Honestly, I’m not even sure it's very much needed but hey, it's there 🤷 🙃

@whatyouhide
Copy link
Collaborator Author

Also, is hard_deprecate = breaking change? Never heard it before tbh

I'm not sure how standard of a term it is, but "hard-deprecate" would mean deprecate and emit a warning, while "soft-deprecate" would mean deprecate (in changelog) and hide in the docs, but without a warning.

@whatyouhide whatyouhide merged commit 24c320e into master Nov 17, 2023
@whatyouhide whatyouhide deleted the al/deprecate-before-send-event branch November 17, 2023 17:00
@krns
Copy link

krns commented Nov 27, 2023

Hey, just read the changelog of v10 and found the use of before_send_event is the Fingerprinting section of the readme. I could prepare a PR if desired.

https://github.com/getsentry/sentry-elixir#fingerprinting

@whatyouhide
Copy link
Collaborator Author

Hey @krns thanks for the catch! Fixed in master 🙃

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.

4 participants