@@ -34,6 +34,7 @@ import { codeWhispererClient } from '../../../codewhisperer/client/codewhisperer
34
34
import { isAwsError } from '../../../shared/errors'
35
35
import { ChatMessageInteractionType } from '../../../codewhisperer/client/codewhispereruserclient'
36
36
import { supportedLanguagesList } from '../chat/chatRequest/converter'
37
+ import { AuthUtil } from '../../../codewhisperer/util/authUtil'
37
38
38
39
const performance = globalThis . performance ?? require ( 'perf_hooks' ) . performance
39
40
@@ -149,6 +150,7 @@ export class CWCTelemetryHelper {
149
150
message = message as InsertCodeAtCursorPosition
150
151
event = {
151
152
cwsprChatConversationId : conversationId ?? '' ,
153
+ credentialStartUrl : AuthUtil . instance . startUrl ,
152
154
cwsprChatMessageId : message . messageId ,
153
155
cwsprChatInteractionType : 'insertAtCursor' ,
154
156
cwsprChatAcceptedCharactersLength : message . code . length ,
@@ -160,6 +162,7 @@ export class CWCTelemetryHelper {
160
162
message = message as CopyCodeToClipboard
161
163
event = {
162
164
cwsprChatConversationId : conversationId ?? '' ,
165
+ credentialStartUrl : AuthUtil . instance . startUrl ,
163
166
cwsprChatMessageId : message . messageId ,
164
167
cwsprChatInteractionType : 'copySnippet' ,
165
168
cwsprChatAcceptedCharactersLength : message . code . length ,
@@ -171,6 +174,7 @@ export class CWCTelemetryHelper {
171
174
message = message as PromptMessage
172
175
event = {
173
176
cwsprChatConversationId : conversationId ?? '' ,
177
+ credentialStartUrl : AuthUtil . instance . startUrl ,
174
178
cwsprChatMessageId : message . messageId ,
175
179
cwsprChatInteractionType : 'clickFollowUp' ,
176
180
}
@@ -180,6 +184,7 @@ export class CWCTelemetryHelper {
180
184
event = {
181
185
cwsprChatMessageId : message . messageId ,
182
186
cwsprChatConversationId : conversationId ?? '' ,
187
+ credentialStartUrl : AuthUtil . instance . startUrl ,
183
188
cwsprChatInteractionType : message . vote ,
184
189
}
185
190
break
@@ -188,6 +193,7 @@ export class CWCTelemetryHelper {
188
193
event = {
189
194
cwsprChatMessageId : message . messageId ,
190
195
cwsprChatConversationId : conversationId ?? '' ,
196
+ credentialStartUrl : AuthUtil . instance . startUrl ,
191
197
cwsprChatInteractionType : 'clickLink' ,
192
198
cwsprChatInteractionTarget : message . link ,
193
199
}
@@ -197,6 +203,7 @@ export class CWCTelemetryHelper {
197
203
event = {
198
204
cwsprChatMessageId : message . messageId ,
199
205
cwsprChatConversationId : conversationId ?? '' ,
206
+ credentialStartUrl : AuthUtil . instance . startUrl ,
200
207
cwsprChatInteractionType : 'clickBodyLink' ,
201
208
cwsprChatInteractionTarget : message . link ,
202
209
}
@@ -206,6 +213,7 @@ export class CWCTelemetryHelper {
206
213
event = {
207
214
cwsprChatMessageId : 'footer' ,
208
215
cwsprChatConversationId : conversationId ?? '' ,
216
+ credentialStartUrl : AuthUtil . instance . startUrl ,
209
217
cwsprChatInteractionType : 'clickBodyLink' ,
210
218
cwsprChatInteractionTarget : message . link ,
211
219
}
0 commit comments