Skip to content

Commit 1226664

Browse files
authored
chore: Remove deprecated user segment (#5298)
1 parent a02314a commit 1226664

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/core/src/js/NativeRNSentry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ export type NativeDeviceContextsResponse = {
135135
email?: string;
136136
username?: string;
137137
ipAddress?: string;
138-
segment?: string;
139138
data?: Record<string, unknown>;
140139
};
141140
dist?: string;

packages/core/src/js/wrapper.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,13 @@ export const NATIVE: SentryNativeWrapper = {
394394
let userKeys = null;
395395
let userDataKeys = null;
396396
if (user) {
397-
const { id, ip_address, email, username, segment, ...otherKeys } = user;
397+
const { id, ip_address, email, username, ...otherKeys } = user;
398398
// TODO: Update native impl to use geo
399399
const requiredUser: Omit<RequiredKeysUser, 'geo'> = {
400400
id,
401401
ip_address,
402402
email,
403403
username,
404-
segment,
405404
};
406405
userKeys = this._serializeObject(requiredUser);
407406
userDataKeys = this._serializeObject(otherKeys);

0 commit comments

Comments
 (0)