Skip to content

Commit da3294c

Browse files
committed
add failure telemetry
1 parent 3ce213e commit da3294c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/managers/pyenv/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Disposable } from 'vscode';
22
import { PythonEnvironmentApi } from '../../api';
33
import { traceInfo } from '../../common/logging';
44
import { EventNames } from '../../common/telemetry/constants';
5+
import { classifyError } from '../../common/telemetry/errorClassifier';
56
import { sendTelemetryEvent } from '../../common/telemetry/sender';
67
import { getPythonApi } from '../../features/pythonApi';
78
import { PythonProjectManager } from '../../internal.api';
@@ -33,6 +34,10 @@ export async function registerPyenvFeatures(
3334
}
3435
} catch (ex) {
3536
traceInfo('Pyenv not found, turning off pyenv features.', ex);
37+
sendTelemetryEvent(EventNames.MANAGER_REGISTRATION_FAILED, undefined, {
38+
managerName: 'pyenv',
39+
errorType: classifyError(ex),
40+
});
3641
await notifyMissingManagerIfDefault('ms-python.python:pyenv', projectManager, api);
3742
}
3843
}

0 commit comments

Comments
 (0)