File tree 3 files changed +11
-1
lines changed 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ export function getDynamicSamplingContextFromClient(
19
19
const options = client . getOptions ( ) ;
20
20
21
21
const { publicKey : public_key } = client . getDsn ( ) || { } ;
22
+ // TODO(v8): Remove segment from User
23
+ // eslint-disable-next-line deprecation/deprecation
22
24
const { segment : user_segment } = ( scope && scope . getUser ( ) ) || { } ;
23
25
24
26
const dsc = dropUndefinedKeys ( {
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ export type DynamicSamplingContext = {
20
20
release ?: string ;
21
21
environment ?: string ;
22
22
transaction ?: string ;
23
+ /**
24
+ * @deprecated Functonality for segment has been removed.
25
+ */
23
26
user_segment ?: string ;
24
27
replay_id ?: string ;
25
28
sampled ?: string ;
Original file line number Diff line number Diff line change 1
- /** JSDoc */
1
+ /**
2
+ * An interface describing a user of an application or a handled request.
3
+ */
2
4
export interface User {
3
5
[ key : string ] : any ;
4
6
id ?: string | number ;
5
7
ip_address ?: string ;
6
8
email ?: string ;
7
9
username ?: string ;
10
+ /**
11
+ * @deprecated Functonality for segment has been removed. Use a custom tag or context instead to capture this information.
12
+ */
8
13
segment ?: string ;
9
14
}
10
15
You can’t perform that action at this time.
0 commit comments