Add comprehensive analytics with Azure Application Insights#13
Open
Add comprehensive analytics with Azure Application Insights#13
Conversation
- Hardcode Application Insights key in telemetry config for production use - Update README to clarify key inclusion is standard practice - Remove confusing developer setup section - Telemetry now works automatically for all users who install the extension This follows standard VS Code extension practices where Application Insights keys are designed for client-side use. Rate limiting and security are handled server-side by Azure. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements privacy-first telemetry tracking to understand feature usage, performance, and errors. This enables data-driven decisions for improving the extension.
Features
✅ 40+ tracked events across extension lifecycle, file operations, and user interactions
✅ Privacy-first design - No PII, no file paths, no user data
✅ GDPR compliant - Automatic PII sanitization, respects VS Code telemetry settings
✅ Performance tracking - Load times, operation durations, bottleneck identification
✅ Error tracking - Categorized errors with sanitized messages
✅ Production-ready - Application Insights key included (standard practice)
Tracked Events
Privacy
All error messages automatically sanitized. Users can opt out via VS Code Settings → Telemetry → off.
Technical Details
@vscode/extension-telemetryv1.4.0Files Changed
src/telemetry/TelemetryService.ts- Main telemetry servicesrc/telemetry/helpers.ts- Categorization helperssrc/config/telemetry.config.ts- Configurationsrc/extension.ts- Lifecycle trackingsrc/providers/BaseDataProvider.ts- File ops & tokenization trackingsrc/utils/tokenizer.ts- Tokenizer trackingREADME.md- Privacy documentationpackage.json- Dependency addedTesting
Ready to Ship
Once merged, telemetry will work automatically for all users who install the extension. They can opt out via VS Code's global telemetry setting.
🤖 Generated with Claude Code