@@ -71,7 +71,7 @@ export class GkMcpProvider implements McpServerDefinitionProvider, Disposable {
7171 try {
7272 const configuration = JSON . parse ( output ) as { name : string ; type : string ; command : string ; args : string [ ] } ;
7373
74- this . notifySetupCompleted ( cliInstall . version ) ;
74+ this . notifyRegistrationCompleted ( cliInstall . version ) ;
7575
7676 return {
7777 name : configuration . name ,
@@ -82,23 +82,19 @@ export class GkMcpProvider implements McpServerDefinitionProvider, Disposable {
8282 } ;
8383 } catch ( ex ) {
8484 Logger . error ( `Error getting MCP configuration: ${ ex } ` ) ;
85- this . notifySetupFailed ( 'Error getting MCP configuration' , undefined , cliInstall . version ) ;
85+ this . notifyRegistrationFailed ( 'Error getting MCP configuration' , undefined , cliInstall . version ) ;
8686 }
8787
8888 return undefined ;
8989 }
9090
91- private notifySetupCompleted ( cliVersion ?: string | undefined ) {
91+ private notifyRegistrationCompleted ( _cliVersion ?: string | undefined ) {
9292 if ( ! this . container . telemetry . enabled ) return ;
9393
94- this . container . telemetry . sendEvent ( 'mcp/registration/completed' , {
95- requiresUserCompletion : false ,
96- source : 'gk-mcp-provider' ,
97- 'cli.version' : cliVersion ,
98- } ) ;
94+ this . container . telemetry . setGlobalAttribute ( 'gk.mcp.registrationCompleted' , true ) ;
9995 }
10096
101- private notifySetupFailed ( reason : string , message ?: string | undefined , cliVersion ?: string | undefined ) {
97+ private notifyRegistrationFailed ( reason : string , message ?: string | undefined , cliVersion ?: string | undefined ) {
10298 if ( ! this . container . telemetry . enabled ) return ;
10399
104100 this . container . telemetry . sendEvent ( 'mcp/registration/failed' , {
0 commit comments