Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 18, 2025

This PR contains the following updates:

Package Change Age Confidence
@vscode/extension-telemetry ^0.7.7 -> ^0.9.0 age confidence

Release Notes

Microsoft/vscode-extension-telemetry (@​vscode/extension-telemetry)

v0.9.9

Compare Source

Changes:

  • #​224: bump version
  • #​223: add node-esm variant
  • #​221: Remove extra brace from common.platformversion
  • #​220: Bump serialize-javascript and mocha
  • #​219: classify new property

This list of changes was auto generated.

v0.9.8

Compare Source

Changes:

  • #​218: Bump version for release
  • #​216: Accept instrumentation and connection string
  • #​215: Propagate session ID metadata

This list of changes was auto generated.

v0.9.7

Compare Source

Changes:

  • #​213: Bump version + packages
  • #​211: Update readme + support connection string
  • #​210: Send user id in extension paylod
  • #​207: Bump braces from 3.0.2 to 3.0.3
  • #​206: Update packages
  • #​204: Rollback packages

This list of changes was auto generated.

v0.9.6

Compare Source

v0.9.5

Compare Source

v0.9.4: Align measurements with properties

Compare Source

  • Allows measurements to also be undefined for easy omitting, similar to how properties work

v0.9.3: Improved user agent

Compare Source

  • Improves on the user agent metric shown when navigator.userAgentData is unavailable. Thanks to @​sezna
  • Fixes a bug with telemetry fetching using app insights on older version of node. Thanks to @​devm33

v0.9.2: Global Privacy Control compliance fixes

Compare Source

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.

v0.9.1: Fix unhandlederror common props.

Compare Source

Thanks to a community contribution by @​ilia-db the unhandlederror event handler has been properly fixed to include common properties.

v0.9.0: Use app insights basics versus the complete app insights package to reduce bundle size

Compare Source

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.

v0.8.5: Improve shutdown performance

Compare Source

  • 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

v0.8.4: Fix data loss on connection loss

Compare Source

  • 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 sending key: key pairs instead of key: value pairs

v0.8.3

Compare Source

v0.8.2: Fix missing sendRawTelemetryEvent function + Dependency updates

Compare Source

  • 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

v0.8.1: Better teardown + error handling

Compare Source

This release only contains bug fixes

  • Fixes a bug where we would cause infinite error loops in the sendErrorData function microsoft#158
  • Fixes a bug where we would not properly wait for the telemetry buffer to flush microsoft#155

v0.8.0: Better align telemetry reporters across desktop and web

Compare Source

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.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Summary by CodeRabbit

  • Chores
    • Updated an internal telemetry dependency to a newer version. This is an internal maintenance update; there are no changes to public APIs or visible behavior for end users.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 18, 2025

📝 Walkthrough

Walkthrough

The pull request updates the top-level dependency @vscode/extension-telemetry in package.json from ^0.7.7 to ^0.9.0. No other files, source code, API usage, control flow, error handling, exported/public declarations, or additional dependencies were changed.

Suggested reviewers

  • saltenasl

Pre-merge checks

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Title clearly describes the main change: a dependency version bump for @vscode/extension-telemetry to ^0.9.0, matching the changeset exactly.
Linked Issues check ✅ Passed Linked issue #192742 addresses VS Code shutdown delays. The PR updates @vscode/extension-telemetry to v0.9.0, which includes improved shutdown performance (v0.8.5) directly relevant to the issue.
Out of Scope Changes check ✅ Passed Changes are narrowly scoped: only @vscode/extension-telemetry dependency updated in package.json, directly addressing the shutdown performance issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot]
coderabbitai bot previously approved these changes Oct 18, 2025
@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch from 6942d8b to 7123473 Compare October 20, 2025 16:17
@codecov
Copy link

codecov bot commented Oct 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73%. Comparing base (26ad568) to head (d4f950f).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main     #83   +/-   ##
=====================================
  Coverage     73%     73%           
=====================================
  Files        577     577           
  Lines      47608   47608           
  Branches    5591    5591           
=====================================
  Hits       34856   34856           
  Misses     10922   10922           
  Partials    1830    1830           
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch 5 times, most recently from 3a9b7ba to 7f50b10 Compare October 20, 2025 18:09
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6942d8b and 7f50b10.

📒 Files selected for processing (1)
  • package.json (1 hunks)
🧰 Additional context used
🪛 GitHub Actions: CI
package.json

[error] 1-1: Dependency graph inconsistency detected by npm ci: lock file diverges from package.json. Consider running 'npm install' to synchronize.

🪛 GitHub Actions: Copilot Setup Steps
package.json

[warning] 1-1: EBADENGINE: Unsupported engine. Required node >=22.17.0, current node v22.15.1. Consider upgrading Node to satisfy engine requirements.

🔇 Additional comments (2)
package.json (2)

2169-2169: Good: telemetry update addresses shutdown behavior concerns.

The v0.8.4–v0.8.5 fixes for shutdown behavior and connection loss mentioned in release notes align with the linked issue #192742 about delayed process termination. The version bump is within reasonable semver bounds for a pre-1.0 package.


1-1: Review comment is incorrect.

The package.json contains no Node version requirement—its engines field specifies only "vscode": "^1.103.0". The CI workflow uses NODE_VERSION: 22.x, which is flexible and accepts any 22.x release. No mismatch exists.

Likely an incorrect or invalid review comment.

@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch 3 times, most recently from 4011ae1 to 9d45c75 Compare October 21, 2025 11:08
@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch from 9d45c75 to 73ef508 Compare October 21, 2025 13:32
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9d45c75 and 73ef508.

📒 Files selected for processing (1)
  • package.json (1 hunks)
🧰 Additional context used
🪛 GitHub Actions: CD
package.json

[warning] 1-1: Unsupported engine: current Node/v12+ (v22.15.1) does not satisfy required: node >=22.17.0 for @vscode/python-extension@1.0.6. Consider upgrading Node to at least 22.17.0.

🪛 GitHub Actions: CI
package.json

[warning] 1-1: EBADENGINE: Unsupported engine. The package '@vscode/python-extension@1.0.6' requires node >=22.17.0 (current: v22.15.1) and npm 10.9.2. Consider upgrading Node.js to satisfy engine requirements.

@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch 7 times, most recently from 95841ca to c8c0bdf Compare October 23, 2025 09:07
@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch 15 times, most recently from 1b335af to 2ac94d1 Compare November 5, 2025 08:30
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 8ef19df and 2ac94d1.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (1 hunks)

@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch from 2ac94d1 to aa3817b Compare November 5, 2025 12:04
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 2ac94d1 and aa3817b.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build & Package Extension

@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch 3 times, most recently from 8b9019c to 67c6bda Compare November 6, 2025 09:22
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 8479f28 and 67c6bda.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (1 hunks)

@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch 4 times, most recently from c715e40 to f5643df Compare November 12, 2025 12:59
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 33c3263 and f5643df.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build & Test

@renovate renovate bot force-pushed the renovate/vscode-extension-telemetry-0.x branch from f5643df to d4f950f Compare November 12, 2025 15:33
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f5643df and d4f950f.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build & Test

"@lumino/widgets": "^2.4.0",
"@nteract/messaging": "^7.0.0",
"@vscode/extension-telemetry": "^0.7.7",
"@vscode/extension-telemetry": "^0.9.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Critical: Dependency update blocked by unresolved breaking change—merge cannot proceed without telemetry wrapper fix.

The past review flagged that v0.8.0+ requires sendTelemetryErrorEvent() for errors, but src/platform/telemetry/index.ts still calls reporter.sendTelemetryEvent() with raw Error objects. This causes runtime failures. Confirm the wrapper has been updated to use the new API before merging.


🏁 Script executed:

#!/bin/bash
# Verify sendTelemetryErrorEvent is now used in telemetry wrapper
rg -n "sendTelemetryErrorEvent" --type ts src/
echo "---"
# Double-check error handling path in telemetry wrapper
rg -n "reporter\.sendTelemetryEvent" --type ts src/platform/telemetry/ -A3 -B3

Length of output: 1091


Critical: Telemetry wrapper not updated for v0.8.0+ breaking change—merge blocked.

Verification confirms sendTelemetryErrorEvent() is not used anywhere in the codebase. Line 190 in src/platform/telemetry/index.ts still calls reporter.sendTelemetryEvent() in the error handling path, which v0.8.0+ no longer supports. Update the wrapper to use the new API before upgrading the dependency.

🤖 Prompt for AI Agents
In package.json around line 2492 and in src/platform/telemetry/index.ts
(referencing line ~190), the telemetry wrapper still uses
reporter.sendTelemetryEvent() in the error path which is incompatible with
@vscode/extension-telemetry v0.8.0+; change the wrapper so that normal events
still use sendTelemetryEvent but error reporting uses the new
sendTelemetryErrorEvent API: update imports/types if needed, add a dedicated
sendError wrapper function that maps error properties to the new API signature
(include message, properties, and measures), and keep a runtime-safe fallback to
sendTelemetryEvent for older versions if sendTelemetryErrorEvent is undefined.
Ensure callers of the wrapper use the new sendError wrapper or that the existing
error-path calls are routed to it.

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.

1 participant