Skip to content

Commit 0c6b961

Browse files
Add comprehensive telemetry logging for command usage and errors
- Install @vscode/extension-telemetry package for Azure Application Insights integration - Create TelemetryService singleton with proper VS Code telemetry consent handling - Add extension-specific telemetry setting (stringManipulation.telemetry) - Instrument all command executions with timing, success/failure, and error tracking - Add telemetry to preview feature usage and command selection - Log sidebar interactions and command executions - Track extension activation and feature adoption - Create comprehensive telemetry.json documentation for transparency - Respect both VS Code global and extension-specific telemetry settings - No PII collection - only usage patterns and performance metrics 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 008dc4d commit 0c6b961

File tree

8 files changed

+611
-66
lines changed

8 files changed

+611
-66
lines changed

package-lock.json

Lines changed: 139 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
],
2020
"main": "./dist/extension.js",
2121
"activationEvents": [
22-
"onCommand:string-manipulation.*",
23-
"onView:stringManipulationSidebar"
22+
"onCommand:string-manipulation.*"
2423
],
2524
"contributes": {
2625
"configuration": {
@@ -31,6 +30,15 @@
3130
"type": "boolean",
3231
"default": false,
3332
"description": "Enable experimental String Manipulation Labs features."
33+
},
34+
"stringManipulation.telemetry": {
35+
"type": "boolean",
36+
"default": true,
37+
"description": "Enable telemetry data collection for String Manipulation extension (respects VS Code's global telemetry setting).",
38+
"tags": [
39+
"telemetry",
40+
"usesOnlineServices"
41+
]
3442
}
3543
}
3644
},
@@ -410,6 +418,7 @@
410418
},
411419
"dependencies": {
412420
"@sindresorhus/slugify": "^0.3.0",
421+
"@vscode/extension-telemetry": "^1.0.0",
413422
"ap-style-title-case": "^1.1.2",
414423
"chicago-capitalize": "^0.1.0",
415424
"nodemon": "^3.1.7",

0 commit comments

Comments
 (0)