diff --git a/src/extension/noConfigDebugInit.ts b/src/extension/noConfigDebugInit.ts index 840ea3ad..f9787d76 100644 --- a/src/extension/noConfigDebugInit.ts +++ b/src/extension/noConfigDebugInit.ts @@ -14,6 +14,8 @@ import { } from 'vscode'; import { createFileSystemWatcher, debugStartDebugging } from './utils'; import { traceError, traceVerbose } from './common/log/logging'; +import { sendTelemetryEvent } from './telemetry'; +import { EventName } from './telemetry/constants'; /** * Registers the configuration-less debugging setup for the extension. @@ -84,6 +86,7 @@ export async function registerNoConfigDebug( // create file system watcher for the debuggerAdapterEndpointFolder for when the communication port is written const fileSystemWatcher = createFileSystemWatcher(new RelativePattern(tempDirPath, '**/*')); const fileCreationEvent = fileSystemWatcher.onDidCreate(async (uri) => { + sendTelemetryEvent(EventName.DEBUGGER_NO_CONFIG_DEBUGGING); const filePath = uri.fsPath; fs.readFile(filePath, (err, data) => { const dataParse = data.toString(); diff --git a/src/extension/telemetry/constants.ts b/src/extension/telemetry/constants.ts index 94ff6643..e8a55d2d 100644 --- a/src/extension/telemetry/constants.ts +++ b/src/extension/telemetry/constants.ts @@ -24,4 +24,5 @@ export enum EventName { USE_REPORT_ISSUE_COMMAND = 'USE_REPORT_ISSUE_COMMAND', DEBUGGER_PYTHON_37_DEPRECATED = 'DEBUGGER_PYTHON_37_DEPRECATED', DEBUGGER_SHOW_PYTHON_INLINE_VALUES = 'DEBUGGER_SHOW_PYTHON_INLINE_VALUES', + DEBUGGER_NO_CONFIG_DEBUGGING = 'DEBUGGER_NO_CONFIG_DEBUGGING', } diff --git a/src/extension/telemetry/index.ts b/src/extension/telemetry/index.ts index 2aeaa406..cbd34467 100644 --- a/src/extension/telemetry/index.ts +++ b/src/extension/telemetry/index.ts @@ -690,4 +690,12 @@ export interface IEventNamePropertyMapping { "DEBUGGER_SHOW_PYTHON_INLINE_VALUES" : { "owner": "eleanorjboyd" } */ [EventName.DEBUGGER_SHOW_PYTHON_INLINE_VALUES]: never | undefined; + + /** + * Telemetry event sent when no-config debugging is used. + */ + /* __GDPR__ + "DEBUGGER_NO_CONFIG_DEBUGGING" : { "owner": "eleanorjboyd" } + */ + [EventName.DEBUGGER_NO_CONFIG_DEBUGGING]: never | undefined; }