-
-
Notifications
You must be signed in to change notification settings - Fork 461
Replace user other with data
#2258
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
Replace user other with data
#2258
Conversation
|
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| c7dc7e4 | 357.37 ms | 402.27 ms | 44.90 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| c7dc7e4 | 1.74 MiB | 2.33 MiB | 605.55 KiB |
Previous results on branch: feat/move-user-other-to-data
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 7cd0ea5 | 274.55 ms | 320.37 ms | 45.82 ms |
| e790300 | 354.43 ms | 389.29 ms | 34.86 ms |
| 3225bfd | 297.04 ms | 358.67 ms | 61.63 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 7cd0ea5 | 1.74 MiB | 2.33 MiB | 605.65 KiB |
| e790300 | 1.74 MiB | 2.33 MiB | 605.65 KiB |
| 3225bfd | 1.74 MiB | 2.33 MiB | 605.65 KiB |
philipphofmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| @@ -0,0 +1,10 @@ | |||
| { | |||
| "email": "c4d61c1b-c144-431e-868f-37a46be5e5f2", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this 👏
| } | ||
|
|
||
| @Test | ||
| fun deserializeLegacy() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for adding a test for this.
| CollectionUtils.newConcurrentHashMap( | ||
| (Map<String, String>) reader.nextObjectOrNull()); | ||
| break; | ||
| case JsonKeys.OTHER: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
l: Maybe a short comment on why we still have this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
CHANGELOG.md
Outdated
| ### Features | ||
|
|
||
| - Make user segment a top level property ([#2257](https://github.com/getsentry/sentry-java/pull/2257)) | ||
| - Make user segment a top level property ([#2258](https://github.com/getsentry/sentry-java/pull/2258)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR title and changelog seem to be off, this is not about the user.segment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow good catch thanks! Not sure how that happened. Guess I just rely on the auto generated title too much and in this case it used the title from the PR I want to merge into.
| /** | ||
| * Gets other user related data. | ||
| * | ||
| * @deprecated use getData instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the @link javadocs
Eg {{@link SentryOptions#getShutdownTimeoutMillis()} }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
| } | ||
|
|
||
| @Test | ||
| fun deserializeLegacy() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use backticks and call it deserialize legacy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
other with data
📜 Description
datais now used instead ofotheronUser. Can still parseotherfrom JSON but will move it todata.This way the custom properties will show up the same way in the UI as they do on other SDKs (e.g. JS).
💡 Motivation and Context
Closes #2242
💚 How did you test it?
📝 Checklist
🔮 Next steps