Skip to content

Bump @opentelemetry/core and @vscode/extension-telemetry and fix TelemetryReporter import - #26007

Merged
Raymond Zhao (rzhao271) merged 5 commits into
mainfrom
dependabot/npm_and_yarn/multi-347287d966
Jun 26, 2026
Merged

Bump @opentelemetry/core and @vscode/extension-telemetry and fix TelemetryReporter import#26007
Raymond Zhao (rzhao271) merged 5 commits into
mainfrom
dependabot/npm_and_yarn/multi-347287d966

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 16, 2026

Copy link
Copy Markdown

Removes @opentelemetry/core. It's no longer used after updating ancestor dependency @vscode/extension-telemetry. These dependencies need to be updated together.

Removes @opentelemetry/core

Updates @vscode/extension-telemetry from 0.8.4 to 1.5.2

@vscode/extension-telemetry v1.5.2 changed TelemetryReporter from a default export to a named export. This PR also updates the import and runtime access in the extension source to match:

  • src/client/telemetry/index.ts and src/client/browser/extension.ts: changed import TelemetryReporter from '@vscode/extension-telemetry' to import { TelemetryReporter } from '@vscode/extension-telemetry' and updated require('@vscode/extension-telemetry').default to require('@vscode/extension-telemetry').TelemetryReporter.
  • gulpfile.js: strip ANSI color escape codes from webpack stdout before checking for ERROR in / WARNING in patterns, so webpack build errors are correctly detected instead of being silently swallowed.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 16, 2026
Removes [@opentelemetry/core](https://github.com/open-telemetry/opentelemetry-js). It's no longer used after updating ancestor dependency [@vscode/extension-telemetry](https://github.com/Microsoft/vscode-extension-telemetry). These dependencies need to be updated together.


Removes `@opentelemetry/core`

Updates `@vscode/extension-telemetry` from 0.8.4 to 1.5.2
- [Release notes](https://github.com/Microsoft/vscode-extension-telemetry/releases)
- [Commits](microsoft/vscode-extension-telemetry@v0.8.4...v1.5.2)

---
updated-dependencies:
- dependency-name: "@opentelemetry/core"
  dependency-version:
  dependency-type: indirect
- dependency-name: "@vscode/extension-telemetry"
  dependency-version: 1.5.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Copilot AI changed the title Bump @opentelemetry/core and @vscode/extension-telemetry Bump @opentelemetry/core and @vscode/extension-telemetry and fix TelemetryReporter import Jun 19, 2026
@rzhao271 Raymond Zhao (rzhao271) added the skip tests Updates to tests unnecessary label Jun 19, 2026
@rzhao271
Raymond Zhao (rzhao271) enabled auto-merge (squash) June 19, 2026 22:54
@rzhao271 Raymond Zhao (rzhao271) modified the milestones: 1.126.0, 1.127.0 Jun 22, 2026
The dependabot PR bumped @vscode/extension-telemetry from ^0.8.4 to
^1.5.2. The old version (0.8.4) exported TelemetryReporter as a default
export (exports.default), while the new version (1.5.2) exports it as a
named export (exports.TelemetryReporter).

The production code in telemetry/index.ts was correctly updated to use
the named export (.TelemetryReporter), but the test mocks still used
{ default: Reporter } causing "TypeError: Reporter is not a constructor"
in 5 unit tests.

Updated all rewiremock calls from:
  rewiremock('@vscode/extension-telemetry').with({ default: Reporter })
to:
  rewiremock('@vscode/extension-telemetry').with({ TelemetryReporter: Reporter })
@rzhao271
Raymond Zhao (rzhao271) merged commit 66ff9a4 into main Jun 26, 2026
49 of 85 checks passed
@rzhao271
Raymond Zhao (rzhao271) deleted the dependabot/npm_and_yarn/multi-347287d966 branch June 26, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code no-changelog No news entry required skip tests Updates to tests unnecessary skip-issue-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants