File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ export function getDynamicSamplingContextFromClient(
1919 const options = client . getOptions ( ) ;
2020
2121 const { publicKey : public_key } = client . getDsn ( ) || { } ;
22+ // TODO(v8): Remove segment from User
23+ // eslint-disable-next-line deprecation/deprecation
2224 const { segment : user_segment } = ( scope && scope . getUser ( ) ) || { } ;
2325
2426 const dsc = dropUndefinedKeys ( {
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ export type DynamicSamplingContext = {
2020 release ?: string ;
2121 environment ?: string ;
2222 transaction ?: string ;
23+ /**
24+ * @deprecated Functonality for segment has been removed.
25+ */
2326 user_segment ?: string ;
2427 replay_id ?: string ;
2528 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+ */
24export interface User {
35 [ key : string ] : any ;
46 id ?: string | number ;
57 ip_address ?: string ;
68 email ?: string ;
79 username ?: string ;
10+ /**
11+ * @deprecated Functonality for segment has been removed. Use a custom tag or context instead to capture this information.
12+ */
813 segment ?: string ;
914}
1015
You can’t perform that action at this time.
0 commit comments