Skip to content

Commit 30058f2

Browse files
authored
Add a new measure for native finder perf (microsoft#23861)
1 parent 1f12640 commit 30058f2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/client/pythonEnvironments/base/locators/common/nativePythonTelemetry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export function sendNativeTelemetry(
113113
refreshTelemetrySent = true;
114114
sendTelemetryEvent(EventName.NATIVE_FINDER_PERF, {
115115
duration: data.data.refreshPerformance.total,
116+
totalDuration: data.data.refreshPerformance.total,
116117
breakdownGlobalVirtualEnvs: data.data.refreshPerformance.breakdown.GlobalVirtualEnvs,
117118
breakdownLocators: data.data.refreshPerformance.breakdown.Locators,
118119
breakdownPath: data.data.refreshPerformance.breakdown.Path,

src/client/telemetry/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,7 @@ export interface IEventNamePropertyMapping {
17381738
/* __GDPR__
17391739
"native_finder_perf" : {
17401740
"duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
1741+
"totalDuration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
17411742
"breakdownLocators" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
17421743
"breakdownPath" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
17431744
"breakdownGlobalVirtualEnvs" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "donjayamanne" },
@@ -1767,7 +1768,7 @@ export interface IEventNamePropertyMapping {
17671768
* This is the time from the perspective of the Native Locator.
17681769
* I.e. starting from the time the request to refresh was received until the end of the refresh.
17691770
*/
1770-
duration: number;
1771+
totalDuration: number;
17711772
/**
17721773
* Time taken by all locators to find the environments.
17731774
* I.e. time for Conda + Poetry + Pyenv, etc (note: all of them run in parallel).

0 commit comments

Comments
 (0)