Skip to content

User segment should be a top level property on the user #2240

@adinauer

Description

@adinauer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions