Skip to content

Add certificate loading duration telemetry - #334188

Merged
Christof Marti (chrmarti) merged 1 commit into
mainfrom
chrmarti/certificate-load-duration
Sep 3, 2026
Merged

Add certificate loading duration telemetry#334188
Christof Marti (chrmarti) merged 1 commit into
mainfrom
chrmarti/certificate-load-duration

Conversation

@chrmarti

Copy link
Copy Markdown
Collaborator

Summary

Add the duration of loading additional TLS certificates to the existing additionalCertificates telemetry event.

The duration covers the complete loadAdditionalCertificates operation, including loading local or remote system certificates and combining the results. It is recorded in milliseconds as a PerformanceAndHealth measurement.

Follow-up to #333953 and #333830.

Validation

  • npm run typecheck-client
  • npm run hygiene

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 3, 2026 07:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The timing correctly spans certificate loading and result aggregation, with an appropriate telemetry classification.

Review tier: Balanced
Findings: None

What changed in this PR

Adds certificate-loading duration telemetry to diagnose slow TLS certificate discovery.

Changes:

  • Measures the complete certificate-loading operation in milliseconds.
  • Adds the duration as a PerformanceAndHealth measurement.
File Description
src/​vs/​workbench/​api/​node/​proxyResolver.ts Records and classifies certificate-loading duration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chrmarti
Christof Marti (chrmarti) marked this pull request as ready for review September 3, 2026 07:12
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 34488796 Current: b542a3d5

Errored (8)

Fixtures that failed to render — no screenshot was produced.

sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunning/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunning/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunningAutoStart/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunningAutoStart/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostDisconnected/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostDisconnected/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/Connecting/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/Connecting/Light — unknown error (no image hash produced)
unknown error (no image hash produced)

@chrmarti
Christof Marti (chrmarti) merged commit 9e75f50 into main Sep 3, 2026
61 of 62 checks passed
@chrmarti
Christof Marti (chrmarti) deleted the chrmarti/certificate-load-duration branch September 3, 2026 08:01
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants