-
-
Notifications
You must be signed in to change notification settings - Fork 452
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 formatted message to be passed in event payload #752
Conversation
It would make sense to me if the payload 'message' element could be either a string or array; however we may need to continue to support 'message_params' element so I kept it as is. |
The |
Sorry if I was unclear, I was not suggesting that params is deprecated. I was just musing about how the event payload array could hypothetically be structured. My two cents is that it's critical for apps to be able to send the message, formatted message and params to Sentry. The message is used to aggregate events together, and the formatted message is the message that actually appears in the Sentry UI (with the params below), so it's quite important for Sentry's core utility to get this right. |
What I don't like is that exposing the |
After talking with @untitaker we agreed that the |
…y#750); use mb_substr (refs getsentry#727).
2b81119
to
d787b5a
Compare
Resolved merge conflict and added test coverage. |
@mfb are you willing to make the requested changes? We would like to release |
4e8ab31
to
bc07927
Compare
Feel free to make changes to my branch if you need to, as I won't be able to work on this again until Sunday. |
friendly ping @mfb I would prefer the contributor to finish the PR if possible. Changes should be relatively quick and easy |
Build is failing due to CS issues 😞 |
It looks like the code style issue is in a file I didn't modify..? |
It's possible that the defaults of CS Fixer changed somehow, you should be able to apply the same fix by doing |
Thank you for your hard work and the patience, LGTM! |
Allow formatted message to be passed in event payload (fixes #750); use mb_substr (refs #727).
This PR will need to be updated after #745 is merged.