Releases: microsoft/vscode-extension-telemetry
Align measurements with properties
Improved user agent
Global Privacy Control compliance fixes
This release contains a small fix to the 1DS package used by Microsoft extensions in the web to ensure compliance with the California's Global Privacy Control. If you're not a Microsoft extension, then it is safe to disregard this release as it contains no new features or improvements for the third party flow.
Fix `unhandlederror` common props.
Thanks to a community contribution by @ilia-db the unhandlederror
event handler has been properly fixed to include common properties.
Use app insights basics versus the complete app insights package to reduce bundle size
Application insights web basics comes with the ability to pass in a fetch pollyfill that allows it to be used for both Node and Web. This is similar to what we already do for first party extensions using the 1DS package.
While there is no breaking changes here, the replacement of a key dependency with what should be an equivalent alternative may have unknown edge cases that were not accounted for, therefore the version has been bumped to reflect this.
Bundlephobia reports a 67Kb decline in bundle size with this change.
Improve shutdown performance
- Improves shutdown performance by lessening the amount of time which is allocated to disposing the telemetry reporters. Additionally, removes a few redundant flushes. Fixes microsoft/vscode#192742
Fix data loss on connection loss
- Fixes a bug where if the user's connection were to drop during a session, telemetry would no longer send for the rest of that session
- Fixes a bug with
sendRawTelemetryEvent
sendingkey: key
pairs instead ofkey: value
pairs
Fix missing `sendRawTelemetryEvent` function + Dependency updates
- Fixes the
sendRawTelemetryEvent
function which was missing in the implementation, but defined in the.d.ts
- Updates word-wrap and semver to address Dependabot security violations
Better teardown + error handling
Better align telemetry reporters across desktop and web
Note: This release contains a breaking change to the typings.
The ability to log a raw Error
object has been removed. You will now have to use sendTelemetryErrorEvent
and break the error stack down into the properties you want due to the web app insights and 1DS library both not supporting this. We want the module to abstract the details away and offer a uniform experience across all platforms.
Also fixes a bug surrounding not logging events properly on shutdown.