-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
ref: Update the logentry interface #11078
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
Conversation
|
Test results from 50.000 events:
I also found one event that uses |
|
All the percy diffs are caused by 103985a |
|
@jan-auer i would propose we implement
About this:
I'm still okay to stop supporting this but at the same time I'm not sure if it wouldn't make sense to just stringify it out. It is still very possible to generate such events by accident in many SDKs and it might just be user hostile in some situations to reject this. |
103985a to
0d7c9e0
Compare
|
Updated. +1 on JSON-formatting |
Fixes and improves the rendering of message (logentry) params which was broken in #11078. Also, `logentry.formatted` is now guaranteed to always be present and there is no more fallback to `logentry.message`.
This was probably broken with GH-11078 but it's hard to tell for sure because the logger is disabled that reports feature extraction failure. This only really presents itself as a failure in development when bootstrapping an environment with `bin/load-mocks`.
This was probably broken with GH-11078 but it's hard to tell for sure because the logger is disabled that reports feature extraction failure. This only really presents itself as a failure in development when bootstrapping an environment with `bin/load-mocks`.
Updates the logentry interface and removes some deprecated behavior.
Changes to the interface
logentry.messageoptional, and require one of {message,formatted}logentry.formattedthe canonical key, removelogentry.messageif they are the same%sand%(key))Changes to normalization
logentry,sentry.interfaces.Messageandmessageare all aliases in ascending prioritymessageis no longer written tologentry.formattedNote:
logentry.messageused to generate an error while emptymessagedid not. This behavior is preserved.#sync-getsentry