sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

User segment should be a top level property on the user

Open adinauer opened this issue 2 years ago • 1 comments

Problem Statement

Currently the user_segment is being read from other['segment'].

Solution Brainstorm

A top level property called segment on the user should be used as is done in the JS SDK:

https://github.com/getsentry/sentry-javascript/blob/beb3c973c0f10c538c8369983fc08c5bd031bfde/packages/types/src/user.ts#L8

adinauer avatar Sep 13 '22 08:09 adinauer

Develop docs amended here: https://github.com/getsentry/develop/pull/685

AbhiPrasad avatar Sep 13 '22 09:09 AbhiPrasad