Repository navigation
PR7: Measure and document connection recovery - #1135
Tomasz Naumowicz (tnaum-ms) merged 17 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…xpansions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…-lifecycle-telemetry-docs
✅ CI passed: standard tier (ready PR)Commit
Full run: add the Code quality
Build sizeNo size data for Artifacts: VSIX | Bundle-reports-45823247237 | L1-manifest-report-45823247237 All graphs (exact bytes)
Packaged bytes. Shared chunks count in every graph that loads them, so rows do not add up. Updated in place on every run. |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved telemetry defects can permanently suppress renewal reporting after unchanged credential saves and misrepresent authentication failures, client replacements, and worker callback completion.
6 open issues
Clarify that host relay outcomes precede worker callback checks · New Label clientGeneration as an entry-generation proxy · New Exclude incomparable authentication outcomes from telemetry comparison · New Validate renewal telemetry against the lookup's captured epoch · New Clarify recovery after reconnecting an unchanged connection · New Distinguish worker settings from permanently retired webviews · New
What changed in this PR
Adds renewal measurements and recovery documentation to the connection-lifecycle work in #1102, building on Shell and Playground renewal from #1133. This PR documents existing recovery behavior without changing the recovery UI or publishing 1.2.0.
Changes:
- Records bounded post-startup Entra lookup outcomes and token lifetimes across the extension, Shell, and Playground.
- Documents reconnect, sign-in recovery, retained tabs, and changed connection settings.
- Adds telemetry queries, unpublished release notes, and updated engineering guidance. Live ingestion and packaged validation remain pending.
| File | Description |
|---|---|
src/documentdb/shell/ShellSessionManager.ts |
Passes post-startup eligibility to the token relay. |
src/documentdb/playground/workerTypes.ts |
Adds a shared driver-abort flag to token requests. |
src/documentdb/playground/WorkerSessionManager.ts |
Captures renewal eligibility when requests arrive. |
src/documentdb/playground/WorkerSessionManager.test.ts |
Covers worker renewal outcomes and exclusions. |
src/documentdb/playground/playgroundWorker.ts |
Signals driver cancellation during token lookup. |
src/documentdb/playground/playgroundWorker.test.ts |
Checks Entra abort-flag behavior. |
src/documentdb/playground/PlaygroundEvaluator.ts |
Forwards post-startup eligibility to the relay. |
src/documentdb/ClustersClient.ts |
Wires renewal observations to client lifecycle checks. |
src/documentdb/ClustersClient.test.ts |
Covers host renewal counting and token lifetime. |
src/documentdb/auth/WorkerTokenRelay.ts |
Records bounded Shell and Playground lookup outcomes. |
src/documentdb/auth/tokenRenewalTelemetry.ts |
Centralizes renewal event emission. |
src/documentdb/auth/tokenExpiry.ts |
Extracts positive full JWT lifetimes. |
src/documentdb/auth/MicrosoftEntraIDAuthHandler.ts |
Gates observations and excludes canceled lookups. |
src/documentdb/auth/authCallerPolicy.ts |
Exposes shared renewal-observation hooks. |
src/commands/signInAgain/signInAgain.ts |
Enables observations after recovery establishes a client. |
src/commands/signInAgain/signInAgain.test.ts |
Checks observation eligibility after sign-in recovery. |
docs/user-manual/query-playground.md |
Links Playground users to recovery guidance. |
docs/user-manual/managing-azure-discovery.md |
Adds a connection-lifecycle reference. |
docs/user-manual/interactive-shell.md |
Links Shell users to renewal and reconnect guidance. |
docs/user-manual/connecting-to-databases.md |
Documents recovery, disconnect, and saved-edit behavior. |
docs/release-notes/1.2.md |
Adds text-only, unpublished lifecycle release notes. |
docs/index.md |
Links the unpublished 1.2 draft. |
docs/ai-and-plans/features/connection-lifecycle/telemetry.md |
Adds lookup, lifecycle, and ARM analysis queries. |
docs/ai-and-plans/features/connection-lifecycle/README.md |
Updates implementation status and documentation choices. |
docs/ai-and-plans/features/connection-lifecycle/iterations/01-pr7-telemetry-and-docs-review.md |
Records pre-review fixes and remaining validation. |
docs/ai-and-plans/features/connection-lifecycle/iterations/01-dev-plan.md |
Records telemetry and documentation progress. |
docs/ai-and-plans/features/connection-lifecycle/decisions.md |
Updates disconnect scope and decision records. |
CHANGELOG.md |
Adds unpublished 1.2.0 lifecycle entries. |
.github/skills/tree-cluster-architecture/SKILL.md |
Documents binding, recovery, and disconnect contracts. |
.github/skills/error-translation/SKILL.md |
Documents typed lifecycle errors and presentation ownership. |
Review effort: Max
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
d2e0695
into
feature/connection-lifecycle


What changed
Document how to disconnect and reconnect, recover Microsoft Entra sign-in, and keep or reopen affected tabs. Add draft, text-only 1.2.0 release notes and record bounded post-startup Entra renewal outcomes for the extension, Shell and Playground.
Why
Users need to know when recovery is automatic, when they must act, and when they need a new tab. Renewal measurements distinguish token lookup outcomes from database acceptance, without including account, connection or token identifiers. Azure Resource Manager challenges are evaluated separately, using the final request outcome.
Scope
WI-9 and WI-10, synchronized with the reviewed #1133 head. This PR does not publish 1.2.0, change the recovery UX, or include screenshots. The dashboard worktree was not modified because it has unrelated changes in progress.
Validation
27af82b0e.Part of #1102. See the connection lifecycle plan and telemetry queries.