@@ -35,7 +35,6 @@ class CompassTelemetry {
35
35
private static analytics : Analytics | null = null ;
36
36
private static state : 'enabled' | 'disabled' = 'disabled' ;
37
37
private static queuedEvents : EventInfo [ ] = [ ] ; // Events that happen before we fetch user preferences
38
- private static currentUserId ?: string ; // Deprecated field. Should be used only for old users to keep their analytics in Segment.
39
38
private static telemetryAnonymousId = '' ; // The randomly generated anonymous user id.
40
39
private static lastReportedScreen = '' ;
41
40
private static osInfo : ReturnType < typeof getOsInfo > extends Promise < infer T >
@@ -80,7 +79,6 @@ class CompassTelemetry {
80
79
}
81
80
82
81
this . analytics . track ( {
83
- userId : this . currentUserId ,
84
82
anonymousId : this . telemetryAnonymousId ,
85
83
event : info . event ,
86
84
properties : { ...info . properties , ...commonProperties } ,
@@ -96,7 +94,6 @@ class CompassTelemetry {
96
94
{
97
95
telemetryCapableEnvironment,
98
96
hasAnalytics : ! ! this . analytics ,
99
- currentUserId : this . currentUserId ,
100
97
telemetryAnonymousId : this . telemetryAnonymousId ,
101
98
state : this . state ,
102
99
queuedEvents : this . queuedEvents . length ,
@@ -108,7 +105,6 @@ class CompassTelemetry {
108
105
this . telemetryAnonymousId
109
106
) {
110
107
this . analytics . identify ( {
111
- userId : this . currentUserId ,
112
108
anonymousId : this . telemetryAnonymousId ,
113
109
traits : {
114
110
...this . _getCommonProperties ( ) ,
@@ -131,9 +127,8 @@ class CompassTelemetry {
131
127
132
128
private static async _init ( app : typeof CompassApplication ) {
133
129
const { preferences } = app ;
134
- const { trackUsageStatistics, currentUserId , telemetryAnonymousId } =
130
+ const { trackUsageStatistics, telemetryAnonymousId } =
135
131
preferences . getPreferences ( ) ;
136
- this . currentUserId = currentUserId ;
137
132
this . telemetryAnonymousId = telemetryAnonymousId ?? '' ;
138
133
139
134
try {
0 commit comments