@@ -138,10 +138,10 @@ export class CfnLintService implements SettingsConfigurable, Closeable {
138138 }
139139
140140 this . status = STATUS . Initialized ;
141- this . telemetry . count ( 'initialized' , 1 , { unit : '1' } ) ;
141+ this . telemetry . count ( 'initialized' , 1 ) ;
142142 } catch ( error ) {
143143 this . status = STATUS . Uninitialized ;
144- this . telemetry . count ( 'uninitialized' , 1 , { unit : '1' } ) ;
144+ this . telemetry . count ( 'uninitialized' , 1 ) ;
145145 throw new Error ( `Failed to initialize Pyodide worker: ${ extractErrorMessage ( error ) } ` ) ;
146146 }
147147 }
@@ -169,10 +169,10 @@ export class CfnLintService implements SettingsConfigurable, Closeable {
169169 try {
170170 await this . workerManager . mountFolder ( fsDir , mountDir ) ;
171171 this . mountedFolders . set ( mountDir , folder ) ;
172- this . telemetry . count ( 'mount.success' , 1 , { unit : '1' } ) ;
172+ this . telemetry . count ( 'mount.success' , 1 ) ;
173173 } catch ( error ) {
174174 this . logError ( 'mounting folder' , error ) ;
175- this . telemetry . count ( 'mount.fault' , 1 , { unit : '1' } ) ;
175+ this . telemetry . count ( 'mount.fault' , 1 ) ;
176176 throw error ; // Re-throw to notify caller
177177 }
178178 }
@@ -386,7 +386,7 @@ export class CfnLintService implements SettingsConfigurable, Closeable {
386386 const fileType = this . documentManager . get ( uri ) ?. cfnFileType ;
387387
388388 if ( ! fileType || fileType === CloudFormationFileType . Unknown ) {
389- this . telemetry . count ( `lint.file.${ CloudFormationFileType . Unknown } ` , 1 , { unit : '1' } ) ;
389+ this . telemetry . count ( `lint.file.${ CloudFormationFileType . Unknown } ` , 1 ) ;
390390 this . publishDiagnostics ( uri , [ ] ) ;
391391 return ;
392392 }
@@ -395,22 +395,22 @@ export class CfnLintService implements SettingsConfigurable, Closeable {
395395 try {
396396 await this . waitForInitialization ( ) ;
397397 } catch ( error ) {
398- this . telemetry . count ( 'lint.uninitialized' , 1 , { unit : '1' } ) ;
398+ this . telemetry . count ( 'lint.uninitialized' , 1 ) ;
399399 this . logError ( 'waiting for CfnLintService initialization' , error ) ;
400400 throw error ;
401401 }
402402
403403 // Redundant check but clears up TypeScript errors
404404 if ( this . status === STATUS . Uninitialized ) {
405- this . telemetry . count ( 'lint.uninitialized' , 1 , { unit : '1' } ) ;
405+ this . telemetry . count ( 'lint.uninitialized' , 1 ) ;
406406 throw new Error ( 'CfnLintService not initialized. Call initialize() first.' ) ;
407407 }
408408
409409 const folder = this . workspace . getWorkspaceFolder ( uri ) ;
410410 if ( folder === undefined || folder === null || forceUseContent ) {
411411 // GitSync deployment files require workspace context to resolve relative template paths
412412 if ( fileType === CloudFormationFileType . GitSyncDeployment ) {
413- this . telemetry . count ( `lint.file.${ CloudFormationFileType . GitSyncDeployment } ` , 1 , { unit : '1' } ) ;
413+ this . telemetry . count ( `lint.file.${ CloudFormationFileType . GitSyncDeployment } ` , 1 ) ;
414414
415415 this . logError (
416416 `processing GitSync deployment file ${ uri } ` ,
@@ -420,7 +420,7 @@ export class CfnLintService implements SettingsConfigurable, Closeable {
420420 return ;
421421 }
422422
423- this . telemetry . count ( `lint.file.${ CloudFormationFileType . Template } ` , 1 , { unit : '1' } ) ;
423+ this . telemetry . count ( `lint.file.${ CloudFormationFileType . Template } ` , 1 ) ;
424424 // Standalone file (not in workspace) or forced to use content - lint as string
425425 await this . lintStandaloneFile ( content , uri , fileType ) ;
426426 } else {
0 commit comments