Skip to content

Add telemetry for project structure metrics at extension startup#1121

Merged
eleanorjboyd merged 3 commits intomicrosoft:mainfrom
eleanorjboyd:presidential-crow
Jan 26, 2026
Merged

Add telemetry for project structure metrics at extension startup#1121
eleanorjboyd merged 3 commits intomicrosoft:mainfrom
eleanorjboyd:presidential-crow

Conversation

@eleanorjboyd
Copy link
Member

co-authored with copilot

Collects workspace project structure patterns at extension activation: project count, unique interpreter count, and nested project count. No paths are transmitted, only aggregated counts.

Copilot AI and others added 2 commits January 21, 2026 04:33
- Add PROJECT_STRUCTURE event to telemetry constants with GDPR annotations
- Implement sendProjectStructureTelemetry function to collect:
  - totalProjectCount: total number of projects in workspace
  - uniqueInterpreterCount: count of distinct Python interpreters
  - projectUnderRoot: count of projects nested under workspace roots
- Call telemetry function at extension startup in extension.ts
- Add comprehensive unit tests covering all scenarios
- Fix path matching logic to properly detect nested projects

Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
@eleanorjboyd eleanorjboyd self-assigned this Jan 26, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 26, 2026
@eleanorjboyd eleanorjboyd enabled auto-merge (squash) January 26, 2026 01:14
@eleanorjboyd eleanorjboyd merged commit 37e216e into microsoft:main Jan 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments