File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { CodeReference } from './amazonqCommonsConnector'
1010import { FollowUpGenerator } from '../followUps/generator'
1111import { getActions } from '../diffTree/actions'
1212import { DiffTreeFileInfo } from '../diffTree/types'
13+ import { telemetry } from '../../../../shared/telemetry'
1314
1415interface ChatPayload {
1516 chatMessage : string
@@ -277,10 +278,13 @@ export class Connector {
277278 }
278279
279280 onStopChatResponse = ( tabID : string ) : void => {
280- this . sendMessageToExtension ( {
281- tabID : tabID ,
282- command : 'stop-response' ,
283- tabType : 'featuredev' ,
281+ telemetry . amazonq_stopCodeGeneration . run ( ( span ) => {
282+ span . record ( { tabID } )
283+ this . sendMessageToExtension ( {
284+ tabID : tabID ,
285+ command : 'stop-response' ,
286+ tabType : 'featuredev' ,
287+ } )
284288 } )
285289 }
286290
Original file line number Diff line number Diff line change 358358 "name" : " amazonqMessageDisplayedMs" ,
359359 "type" : " int" ,
360360 "description" : " Duration between the partner teams code receiving the message and when the message was finally displayed in ms"
361+ },
362+ {
363+ "name" : " tabID" ,
364+ "type" : " string" ,
365+ "description" : " The unique identifier of a tab"
361366 }
362367 ],
363368 "metrics" : [
12601265 "required" : false
12611266 }
12621267 ]
1268+ },
1269+ {
1270+ "name" : " amazonq_stopCodeGeneration" ,
1271+ "description" : " User stopped the code generation" ,
1272+ "metadata" : [
1273+ {
1274+ "type" : " tabID" ,
1275+ "required" : true
1276+ }
1277+ ]
12631278 }
12641279 ]
12651280}
You can’t perform that action at this time.
0 commit comments