Skip to content

feat: Add segment property to user#2234

Merged
philipphofmann merged 2 commits into
masterfrom
feat/user-segment
Sep 28, 2022
Merged

feat: Add segment property to user#2234
philipphofmann merged 2 commits into
masterfrom
feat/user-segment

Conversation

@philipphofmann

@philipphofmann philipphofmann commented Sep 28, 2022

Copy link
Copy Markdown
Member

📜 Description

Add top-level property segment to the user instead of having to set it on the data dictionary.

Docs PR getsentry/sentry-docs#5575

💡 Motivation and Context

Fixes GH-2149

💚 How did you test it?

Unit tests

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • Review from the native team if needed
  • No breaking changes

🔮 Next steps

Add top-level property segment to user, instead of having to set it
on the data dictionary with keeping backwards compatibility.

Fixes GH-2149
@github-actions

github-actions Bot commented Sep 28, 2022

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 14e120b

Comment thread Sources/Sentry/SentryTraceContext.m Outdated
@github-actions

github-actions Bot commented Sep 28, 2022

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1215.57 ms 1241.18 ms 25.61 ms
Size 20.51 KiB 331.92 KiB 311.42 KiB

Baseline results on branch: master

Startup times

Revision Plain With Sentry Diff
791123d 1256.10 ms 1266.68 ms 10.58 ms
864c39a 1239.45 ms 1256.76 ms 17.31 ms
864c39a 1226.12 ms 1248.26 ms 22.13 ms
4a66f00 1259.84 ms 1281.66 ms 21.82 ms
864c39a 1191.14 ms 1233.38 ms 42.24 ms
9fc2dd0 1246.14 ms 1275.00 ms 28.86 ms
4a66f00 1224.73 ms 1241.14 ms 16.41 ms
202334c 1265.41 ms 1277.34 ms 11.93 ms
791123d 1217.52 ms 1253.08 ms 35.56 ms
7138b7d 1243.40 ms 1252.08 ms 8.68 ms

App size

Revision Plain With Sentry Diff
791123d 20.51 KiB 331.81 KiB 311.30 KiB
864c39a 20.51 KiB 335.57 KiB 315.06 KiB
864c39a 20.51 KiB 335.57 KiB 315.06 KiB
4a66f00 20.51 KiB 331.79 KiB 311.28 KiB
864c39a 20.51 KiB 335.57 KiB 315.06 KiB
9fc2dd0 20.50 KiB 331.79 KiB 311.28 KiB
4a66f00 20.51 KiB 331.79 KiB 311.28 KiB
202334c 20.51 KiB 331.79 KiB 311.28 KiB
791123d 20.51 KiB 331.81 KiB 311.30 KiB
7138b7d 20.51 KiB 331.79 KiB 311.28 KiB

Previous results on branch: feat/user-segment

Startup times

Revision Plain With Sentry Diff
f87a3a9 1232.10 ms 1263.04 ms 30.94 ms

App size

Revision Plain With Sentry Diff
f87a3a9 20.51 KiB 332.05 KiB 311.54 KiB

@brustolin brustolin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@philipphofmann
philipphofmann merged commit 73fc407 into master Sep 28, 2022
@philipphofmann
philipphofmann deleted the feat/user-segment branch September 28, 2022 12:45
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.

User segment should be a top level property on the user

4 participants